mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-01-30 23:02:15 +00:00
Fix send futures in FakeChannelSink to unbreak a unit test that deadlocks after a previous change.
This commit is contained in:
parent
d919ede7a8
commit
40c13eb3f3
@ -48,6 +48,7 @@ public class FakeChannelSink extends AbstractChannelSink {
|
||||
FakeChannel channel = (FakeChannel) event.getChannel();
|
||||
boolean offered = channel.events.offer(event);
|
||||
assert offered;
|
||||
event.getFuture().setSuccess();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user