Skip to content

Commit 35984f4

Browse files
authored
Merge pull request #50 from MeTaXaS4/master
don't ping on connection not "open"
2 parents 13fc371 + c340fcf commit 35984f4

File tree

1 file changed

+1
-1
lines changed
  • Src/EngineIoClientDotNet.mono/Client

1 file changed

+1
-1
lines changed

Src/EngineIoClientDotNet.mono/Client/Socket.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ private void SetPing()
574574
SetPing();
575575
log2.Info("skipping Ping during upgrade");
576576
}
577-
else
577+
else if(ReadyState == ReadyStateEnum.CLOSED)
578578
{
579579
Ping();
580580
OnHeartbeat(PingTimeout);

0 commit comments

Comments
 (0)