mirror of
https://github.com/corda/corda.git
synced 2025-01-04 12:14:17 +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
|
// No need to take action as will fall out of the loop due to future.isDone
|
||||||
} catch(e: CancellationException) {
|
} catch(e: CancellationException) {
|
||||||
// No need to take action as will fall out of the loop due to future.isDone
|
// 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()
|
subscription?.unsubscribe()
|
||||||
|
Loading…
Reference in New Issue
Block a user