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