Commit 3198cba
authored
Fix
* Fix `cleanResponses` must handle cleaning up cancelled future
If a future would be cancelled outside of `cleanResponses`, calling `future.get()` would throw a `CancellationException`.
This exception was not caught, breaking future cleanup.
Signed-off-by: Maurice van Veen <[email protected]>
* Catch Throwable
Signed-off-by: Maurice van Veen <[email protected]>
---------
Signed-off-by: Maurice van Veen <[email protected]>cleanResponses must handle cleaning up cancelled future (#1218)1 parent b2ceb1a commit 3198cba
File tree
2 files changed
+21
-1
lines changed- src
- main/java/io/nats/client/impl
- test/java/io/nats/client/impl
2 files changed
+21
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1171 | 1171 | | |
1172 | 1172 | | |
1173 | 1173 | | |
1174 | | - | |
| 1174 | + | |
1175 | 1175 | | |
1176 | 1176 | | |
1177 | 1177 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
739 | 739 | | |
740 | 740 | | |
741 | 741 | | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
742 | 762 | | |
0 commit comments