altv-issues icon indicating copy to clipboard operation
altv-issues copied to clipboard

resourceStop event not working on Linux server

Open PainedPsyche opened this issue 1 year ago • 7 comments
trafficstars

Description of the problem

When pressing ctrl+C in the server console, it seems like resourceStop event is not emitted.

Reproduction steps

import alt from 'alt-server';

console.log('resourceStop handler loaded')

alt.on('resourceStop', async function() {
    console.log('resource stopped');
    await alt.Utils.wait(5000)
});

Start the server and then hit Ctrl+C to stop it.

Expected behaviour

Both resourceStop handler loaded' and resource stopped messages will appear in the server console log.

Additional context

No response

Operating system

Rocky Linux 9.3 (Blue Onyx)

Version

v16.0.0-dev.389

Crashdump ID

No response

Confirmation of issue's presence

  • [X] By submitting this ticket, I affirm that I have verified the presence of this issue on the latest developer version available at the time of writing this ticket.

PainedPsyche avatar May 23 '24 18:05 PainedPsyche