Skip to content

Commit c340fcf

Browse files
committed
ping only when the state is open
1 parent f1794d0 commit c340fcf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • Src/EngineIoClientDotNet.mono/Client

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)