Bug fix to event loop

This commit is contained in:
QuantumEntangledAndy committed 2021-08-15 16:14:39 +07:00
1 parent cc517588fe
commit 81e7fd8ecf
1 file changed
+1 -1
+1 -1
View File
@@ -189,7 +189,7 @@ struct MessageHandler {
impl MessageHandler {
fn listen(&mut self) {
if self.app.running(&format!("app:{}", self.name)) {
while self.app.running(&format!("app:{}", self.name)) {
// Try and lock don't worry if not
if let Ok(ref mut channel_out) = self.rx.try_lock() {
match channel_out.try_recv() {