Allow disable encryption

This commit is contained in:
Snowiiii committed 2024-09-28 13:03:31 +02:00
1 parent 92fef82bda
commit 1ddaca1406
14 files changed
+117 -101

No files matched your search

+4 -7
View File
@@ -140,13 +140,10 @@ impl RCONClient {
}
}
// If we get a close here, we might have a reply, which we still want to write.
match self.poll(server, password).await {
Ok(()) => {}
Err(e) => {
log::error!("rcon error: {e}");
self.closed = true;
}
}
let _ = self.poll(server, password).await.map_err(|e| {
log::error!("rcon error: {e}");
self.closed = true;
});
}
self.closed
}