mirror of
https://github.com/PixelGuys/Cubyz.git
synced 2025-08-03 11:17:05 -04:00
parent
3a8d4d32ab
commit
2a27f185e3
@ -47,7 +47,9 @@ fn invite(_: usize) void {
|
||||
thread = null;
|
||||
}
|
||||
const user = main.server.User.initAndIncreaseRefCount(main.server.connectionManager, ipAddressEntry.currentString.items) catch |err| {
|
||||
std.log.err("Cannot connect user: {s}", .{@errorName(err)});
|
||||
if(err != error.AlreadyConnected) {
|
||||
std.log.err("Cannot connect user: {s}", .{@errorName(err)});
|
||||
}
|
||||
return;
|
||||
};
|
||||
user.decreaseRefCount();
|
||||
|
@ -70,7 +70,6 @@ pub fn update() void {
|
||||
const serverListLen = main.server.connectionManager.connections.items.len;
|
||||
main.server.connectionManager.mutex.unlock();
|
||||
if(userList.len != serverListLen) {
|
||||
std.log.err("{} {}", .{userList.len, serverListLen});
|
||||
onClose();
|
||||
onOpen();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user