Fixed small bug related to double connecting to the same server

This commit is contained in:
WolverinDEV 2021-02-20 18:58:09 +01:00
parent aa360e4708
commit 711632b65d

View file

@ -226,7 +226,7 @@ async function doHandleConnectRequest(serverAddress: string, serverUniqueId: str
} }
server_connections.setActiveConnectionHandler(targetServerConnection); server_connections.setActiveConnectionHandler(targetServerConnection);
if(isCurrentServerConnection) { if(targetServerConnection.getCurrentServerUniqueId() === serverUniqueId) {
/* Just join the new channel and may use the token (before) */ /* Just join the new channel and may use the token (before) */
/* TODO: Use the token! */ /* TODO: Use the token! */