mirror of
https://github.com/gopher64/gopher64.git
synced 2026-07-11 01:25:20 +02:00
don't spam errors (#1089)
This commit is contained in:
+1
-3
@@ -254,9 +254,7 @@ pub fn in_rollback(netplay: Option<&Netplay>) -> bool {
|
||||
fn process_disconnected_peers(netplay: &mut Netplay) {
|
||||
while let Ok(addr) = netplay.disconnected_peers.try_recv() {
|
||||
for handle in netplay.session.handles_by_address(addr) {
|
||||
if let Err(e) = netplay.session.disconnect_player(handle) {
|
||||
eprintln!("Error disconnecting player: {}", e);
|
||||
} else {
|
||||
if netplay.session.disconnect_player(handle).is_ok() {
|
||||
ui::video::onscreen_message(
|
||||
&format!("Player {} disconnected", handle + 1),
|
||||
ui::video::MESSAGE_LENGTH_MESSAGE_SHORT,
|
||||
|
||||
Reference in New Issue
Block a user