changeset 8645 | 809e328bab99 |
parent 8620 | 6787f745da50 |
child 8833 | c13ebed437cb |
child 9080 | 9b42757d7e71 |
--- a/hedgewars/uIO.pas Mon Mar 04 16:35:17 2013 +0100 +++ b/hedgewars/uIO.pas Mon Mar 04 20:16:43 2013 +0400 @@ -226,9 +226,12 @@ procedure flushBuffer(); begin - SDLNet_TCP_Send(IPCSock, @sendBuffer.buf, sendBuffer.count); - flushDelayTicks:= 0; - sendBuffer.count:= 0 + if IPCSock <> nil then + begin + SDLNet_TCP_Send(IPCSock, @sendBuffer.buf, sendBuffer.count); + flushDelayTicks:= 0; + sendBuffer.count:= 0 + end end; procedure SendIPC(s: shortstring);