[CORDA-3151] Fixed bug where observable leaks on ctrl+c interrupt while waiting in stateMachinesFeed. (#5458)

This commit is contained in:
Stefan Iliev 2019-09-12 10:26:28 +01:00 committed by Anthony Keenan
parent 187be4c919
commit 3b941af607

View File

@ -474,6 +474,7 @@ object InteractiveShell {
try {
result = result.get()
} catch (e: InterruptedException) {
subscriber.unsubscribe()
Thread.currentThread().interrupt()
} catch (e: ExecutionException) {
throw e.rootCause