View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0002551||Multi Theft Auto : San Andreas||Scripting||public||2007-09-25 12:51||2007-11-11 20:46|
|Platform||AMD Athlon(tm) 64 X2 ~2.2GHz||OS||Windows XP Professional x64 SP1||OS Version||5.2, Build 3790|
|Target Version||Fixed in Version||mtasadm_v1.0-dp1|
|Summary||0002551: Clientside event handlers are not always added after restarting|
When restarting a resource that adds clientside event handlers, an error message from addEventHandler shows saying that the event is already handled.
This does not happen when stopping, then starting. Restarting again after this issue has happened causes the script to reload adding the handlers as expected.
|Steps To Reproduce|
(only on test servers)
Check debug. Every two restarts, you'll get a message saying rtEvent is already handled.
|Tags||No tags attached.|
This only happens when using the /restart command and restartResource(). It is not an issue when using /start then /stop (or startResource() then stopResource()).
I'd also add that it only happens when the script is left unchanged, it never happens when you update it before restarting
Fixed, happened when the stop and start packets arrived in the same frame, the old event handler was still being deleted so the new event handler couldn't be added.