You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Restarting current resource within itself results in server crash #1421
Alright, so I have to add the command to separate resource to fix that.
The reason why I need separate command for restarting specific resource is because only players with specific ace permission should be able to restart this specific resource. I don't want to give players permission for restart command as they could restart any resource which should not be restarted.
Still happens on current master, and not only for JS: Lua crashes the same way, and so does A calling an export of B that restarts A. Opened a PR that runs stop / restart / ensure for a resource that's still on the stack on the next tick instead, so a self restart just works now: #4403
Activity
blattersturm commentedon Apr 24, 2022
This isn't fixable for obvious reasons and there's already logic preventing this for the intended natives such as STOP_RESOURCE.
The best we can do is just prevent a stop/start of a currently-executing resource, but you haven't provided much.. details.
mythicalbro commentedon Apr 24, 2022
Alright, so I have to add the command to separate resource to fix that.
The reason why I need separate command for restarting specific resource is because only players with specific ace permission should be able to restart this specific resource. I don't want to give players permission for restart command as they could restart any resource which should not be restarted.
OneEarJoe5 commentedon Nov 14, 2026
Still happens on current master, and not only for JS: Lua crashes the same way, and so does A calling an export of B that restarts A. Opened a PR that runs stop / restart / ensure for a resource that's still on the stack on the next tick instead, so a self restart just works now: #4403