pupsnow / merapi

Automatically exported from code.google.com/p/merapi
0 stars 0 forks source link

Unhandled SecurityErrorEvent in connect-function #9

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi guys,
thank you for your fantastic and absolute awesome work regarding Merapi and
all thats been build around it.

I noticed a tiny problem regarding the SecurityErrorEvent, which is thrown
by the Socket class if e.g. the JAVA side of Merapi is not running
properly. Problem of this SecurityErrorEvent is that it has to be handled
or an exception will be thrown ("Unhandled securityError"). 

Because of the class structure there is no possibility to handle that
SecurityErrorEvent from outside. To make sure my application is not
throwing an exception if Merapi is not running correctly, I just added an
listener for SecurityErrorEvent.SECURITY_ERROR to the Socket class which
will also be handled in the handleIOError-method (parameter was changed to
ErrorEvent to match all types of ErrorEvents).

Small change, and Merapi is running a tiny bit safer than before :)

Thanks for your time!
Regards, 
Matthias

Original issue reported on code.google.com by emt...@googlemail.com on 4 Nov 2009 at 10:29

GoogleCodeExporter commented 9 years ago
Okay I found some threads in the usergroup regarding the problem and I have 
overseen
the AS3 branch where the problem is fixed, so regard my issue as fixed.

Sorry again.

Original comment by emt...@googlemail.com on 4 Nov 2009 at 11:40