View Issue Details

IDProjectCategoryView StatusLast Update
0005252Multi Theft Auto : San AndreasServerpublic2010-03-23 13:45
ReporterAxelAssigned Toccw 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version 
Target Version1.0.4Fixed in Version1.0.4 
Summary0005252: Using cancelEvent(true) in event onResourceStart not removed event handler after implementation.
Description

If at run resource in event onResourceStart cancel event function cancelEvent(true), resource is not loaded, but in the server's memory this event remains, after do not run any resources. After that, every time you run any resource, the event remains in memory on the server, but not removed.

addEventHandler( "onResourceStart", getRootElement(), function ()
cancelEvent(true)
end )

TagsNo tags attached.

Activities

Axel

2010-03-23 06:35

viewer   ~~0011236

A small addition: if cancel event onResourceStart, resource is not loaded, but scripts remains in servers memory and continue to work.

x86

2010-03-23 12:21

administrator   ~~0011242

Fixed in: http://github.com/multitheftauto/multitheftauto/commit/fb75e0990ac135bb282e5671c530deb995bc447f

ccw

2010-03-23 13:33

administrator   ~~0011243

If you need this for 1.0.3 and earlier, cancelEvent works in onResourcePreStart

Axel

2010-03-23 13:45

viewer   ~~0011245

I know, but then can not cancel start current resource, thank you.

Issue History

Date Modified Username Field Change