.
This commit is contained in:
@@ -298,6 +298,7 @@ public class ZHubClient extends AbstractConsumer implements IConsumer, IProducer
|
|||||||
|
|
||||||
// send msg
|
// send msg
|
||||||
new Thread(() -> {
|
new Thread(() -> {
|
||||||
|
while (true) {
|
||||||
String msg = null;
|
String msg = null;
|
||||||
try {
|
try {
|
||||||
msg = sendMsgQueue.take();
|
msg = sendMsgQueue.take();
|
||||||
@@ -315,7 +316,8 @@ public class ZHubClient extends AbstractConsumer implements IConsumer, IProducer
|
|||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
}
|
||||||
|
}).start();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user