diff options
Diffstat (limited to 'azalea-client/src/raw_connection.rs')
| -rw-r--r-- | azalea-client/src/raw_connection.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/azalea-client/src/raw_connection.rs b/azalea-client/src/raw_connection.rs index e2daaba2..bcb1ada0 100644 --- a/azalea-client/src/raw_connection.rs +++ b/azalea-client/src/raw_connection.rs @@ -133,7 +133,10 @@ impl RawConnectionReader { Ok(raw_packet) => { self.incoming_packet_queue.lock().push(raw_packet); // tell the client to run all the systems - self.run_schedule_sender.send(()).unwrap(); + if self.run_schedule_sender.send(()).is_err() { + // the client was dropped + break; + } } Err(error) => { if !matches!(*error, ReadPacketError::ConnectionClosed) { |
