openfl/openfl — pull request #331 by soywiz (2014-09-02 12:33:41+00:00)
Title: Socket.flush() shouldn't propagate exceptions from sys.net.Socket, but t...

...ransform them into IOError

Socket.onFrame() shouldn't throw errors that won't be able to be catched when called flush(), but it should dispatch an IOErrorEvent
This should avoid crashing the application without the ability to recover when connecting and writing to an address that is not listening