statianzo/Fleck — pull request #39 by Marrowmaw (2012-03-09 04:07:40+00:00)
Title: Prevents a crash if there is an error with reading or writing to the stream.

Commit:
Prevents a crash if there is an error with reading or writing to the stream.

Issue:
Had an issue if you try to open multiple sockets then close and re-open causes the app to crash with a System IO exception.

Case:
Refresh the page containing the socket connections this causes the sockets to close.
If the read or write of the stream is happening while closing the System IO exception will throw causing the app to crash.

Solution:
Try, Catch around usage of stream read / write.