author | unc0rr |
Mon, 04 Mar 2013 20:16:43 +0400 | |
changeset 8645 | 809e328bab99 |
parent 8644 | 62756eb6fe9c |
child 8646 | e31044b7fbba |
hedgewars/uIO.pas | file | annotate | diff | comparison | revisions |
--- 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);