Closed miwarnec closed 1 month ago
for a simple solution, we could change OnTransprotConnectec to ignore connections while not listening
for a simple solution, we could change OnTransprotConnectec to ignore connections while not listening
You'd need to call Transport.ClientDisconnect if listen == false so the transport kicks the connection off.
This in NetworkServer::IsConnectionAllowed
if (dontListen)
{
Debug.LogError($"Server not listening, client {connectionId} will be kicked");
return false;
}
@MrGadget1024 pushed. no more shutdown. just not accepting connections. that should be the most simple solution here.
@miwarnec Failing test
@miwarnec Failing test
fixed
MERGE, DONT SQUASH