mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-03-18 02:30:54 +03:00
add missing release() on event producer
This commit is contained in:
@@ -32,7 +32,7 @@ use crate::{
|
||||
producer::EventProducer,
|
||||
};
|
||||
|
||||
#[derive(Eq, PartialEq)]
|
||||
#[derive(Debug, Eq, PartialEq)]
|
||||
enum State {
|
||||
Sending,
|
||||
Receiving,
|
||||
@@ -351,6 +351,7 @@ impl Server {
|
||||
// event should still be possible
|
||||
if let Event::Enter() = event {
|
||||
self.state = State::Receiving;
|
||||
self.producer.release();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user