We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b5f594 commit 2a3640aCopy full SHA for 2a3640a
crates/hyperion-proxy/src/player.rs
@@ -129,6 +129,12 @@ pub fn initiate_player_connection(
129
packet_writer.enqueue_packet(outgoing_packet);
130
}
131
132
+
133
+ // Ensure that the client receives any final packets, especially a disconnect message
134
+ // packet if present, when the connection is shut down. Send errors are ignored.
135
+ if let Err(e) = packet_writer.flush_pending_packets().await {
136
+ warn!("Error flushing packets to player: {e:?}");
137
+ }
138
});
139
140
tokio::task::spawn(async move {
0 commit comments