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