Skip to content

Commit 2a954c9

Browse files
committed
fix issue #49
1 parent 5edd066 commit 2a954c9

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
@@ -445,7 +445,7 @@ private bool Flush()
445445
var log = LogManager.GetLogger(Global.CallerName());
446446

447447
log.Info(string.Format("ReadyState={0} Transport.Writeable={1} Upgrading={2} WriteBuffer.Count={3}",ReadyState,Transport.Writable,Upgrading, WriteBuffer.Count));
448-
if (ReadyState != ReadyStateEnum.CLOSED && this.Transport.Writable && !Upgrading && WriteBuffer.Count != 0)
448+
if (ReadyState != ReadyStateEnum.CLOSED && ReadyState == ReadyStateEnum.OPEN && this.Transport.Writable && !Upgrading && WriteBuffer.Count != 0)
449449
{
450450
log.Info(string.Format("Flush {0} packets in socket", WriteBuffer.Count));
451451
PrevBufferLen = WriteBuffer.Count;

0 commit comments

Comments
 (0)