Refactor session accounting in daemon, add REPL to it, write a test

This commit is contained in:
Ilya Chernikov
2016-10-02 16:42:27 +02:00
parent 3a52c68973
commit ea4a1df839
3 changed files with 143 additions and 81 deletions
@@ -62,7 +62,12 @@ open class KotlinRemoteReplClientBase(
init {
Disposer.register(disposable, Disposable {
compileService.releaseReplSession(sessionId)
try {
compileService.releaseReplSession(sessionId)
}
catch (ex: java.rmi.RemoteException) {
// assuming that communication failed and daemon most likely is already down
}
})
}