release capture if emulation disabled on target

This commit is contained in:
Ferdinand Schober
2024-09-28 19:18:54 +02:00
parent f6a7010d17
commit 1979f203d2
5 changed files with 42 additions and 14 deletions

View File

@@ -55,7 +55,7 @@ impl Emulation {
listener.reply(addr, ProtoEvent::Ack(0)).await;
}
ProtoEvent::Input(event) => emulation_proxy.consume(event, addr),
ProtoEvent::Ping => listener.reply(addr, ProtoEvent::Pong).await,
ProtoEvent::Ping => listener.reply(addr, ProtoEvent::Pong(server.emulation_status.get() == Status::Enabled)).await,
_ => {}
}
}