mirror of
https://github.com/corda/corda.git
synced 2024-12-30 01:39:04 +00:00
Handle the timeout exception, which can happen if the scheduler overruns (e.g. during debugging, but also potentiallyu with slow callbacks).
This commit is contained in:
parent
86ea9f0082
commit
1c39780c22
@ -96,6 +96,8 @@ fun Clock.awaitWithDeadline(deadline: Instant, future: Future<*> = GuavaSettable
|
||||
// No need to take action as will fall out of the loop due to future.isDone
|
||||
} catch(e: CancellationException) {
|
||||
// No need to take action as will fall out of the loop due to future.isDone
|
||||
} catch(e: TimeoutException) {
|
||||
// No need to take action as will fall out of the loop due to future.isDone
|
||||
}
|
||||
}
|
||||
subscription?.unsubscribe()
|
||||
|
Loading…
Reference in New Issue
Block a user