Fix the readInputLoop so that messages are all delivered and processed in the main thread

This commit is contained in:
Guillaume Nodet
2020-11-12 00:18:06 +01:00
parent e397627376
commit d44e3201e0
5 changed files with 27 additions and 5 deletions

View File

@@ -32,10 +32,14 @@ public class TestClientOutput implements ClientOutput {
}
@Override
public void setDeamonDispatch(Consumer<Message> daemonDispatch) {
public void setDaemonDispatch(Consumer<Message> daemonDispatch) {
this.daemonDispatch = daemonDispatch;
}
@Override
public void setDaemonReceive(Consumer<Message> sink) {
}
@Override
public void accept(Message message) {
messages.add(message);