diff --git a/Src/EngineIoClientDotNet.mono/Client/Socket.cs b/Src/EngineIoClientDotNet.mono/Client/Socket.cs index bdbb52f..caca137 100644 --- a/Src/EngineIoClientDotNet.mono/Client/Socket.cs +++ b/Src/EngineIoClientDotNet.mono/Client/Socket.cs @@ -574,7 +574,7 @@ private void SetPing() SetPing(); log2.Info("skipping Ping during upgrade"); } - else + else if(ReadyState == ReadyStateEnum.CLOSED) { Ping(); OnHeartbeat(PingTimeout);