Error writing to stream

BlitzMax Forums/BlitzMax Programming/Error writing to stream

Eikon(Posted 2006) [#1]
I am using BNet and UDP to create a client/server setup. I have an auto disconnect routine in place that drops a client if it hasn't responded to a ping request in 10 seconds. If the user kills the client by CTRL+ALT+DELETE and end task, the server gets an error writing to stream in stream.bmx the next time I try to WriteByte, which takes out the server and all remaining connected clients. This only happens if info is sent to the disconnected client before the 10 seconds is up, otherwise the routine takes care of it. Is there any way to catch or stop this error?