CORDA-3034. Reconnecting Rpc will now not wait only for 60 min after normal operation (#5262)

This commit is contained in:
Pranav Kotamraju 2019-06-27 22:33:06 +05:30 committed by Shams Asari
parent ffe328c604
commit ebe3169826

View File

@ -395,7 +395,7 @@ class ObserverHandle {
/**
* Returns null if the observation ended successfully.
*/
internal fun await(duration: Duration = 60.minutes): Throwable? = terminated.poll(duration.seconds, TimeUnit.SECONDS).orElse(null)
internal fun await(): Throwable? = terminated.take().orElse(null)
}
/**