diff --git a/protocol.c b/protocol.c index 9475e2d..594049e 100644 --- a/protocol.c +++ b/protocol.c @@ -1370,7 +1370,7 @@ enet_protocol_check_timeouts (ENetHost * host, ENetPeer * peer, ENetEvent * even if (peer -> earliestTimeout != 0 && (ENET_TIME_DIFFERENCE (host -> serviceTime, peer -> earliestTimeout) >= peer -> timeoutMaximum || - ((1 << (outgoingCommand -> sendAttempts - 1)) >= peer -> timeoutLimit && + ((1U << (outgoingCommand -> sendAttempts - 1)) >= peer -> timeoutLimit && ENET_TIME_DIFFERENCE (host -> serviceTime, peer -> earliestTimeout) >= peer -> timeoutMinimum))) { enet_protocol_notify_disconnect (host, peer, event);