Skip to content

Commit a93ce8d

Browse files
authored
Merge pull request #57 from chrisprad/Threadleak
Fixed runaway threadleak issue due around ping/heartbeats
2 parents 7d27b99 + 1ebec32 commit a93ce8d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Src/EngineIoClientDotNet.mono/Client/Socket_net35.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -566,11 +566,11 @@ private void SetPing()
566566
else if (ReadyState == ReadyStateEnum.OPEN)
567567
{
568568
Ping();
569-
SetHeartbeat(PingTimeout);
570569
log2.Info("EasyTimer SetPing finish");
571570
}
572571

573-
}, (int)PingInterval);
572+
}, (int)PingInterval);
573+
SetHeartbeat(PingTimeout);
574574
}
575575

576576
private void Ping()

0 commit comments

Comments
 (0)