monkeydevDe / piLaz0rTag

Lasertag system on a PI
3 stars 0 forks source link

BaseClass cleanup function leads to an emitter memory leak #41

Open tuxBurner opened 7 years ago

tuxBurner commented 7 years ago

This should not work like this.

//process.on('SIGINT', function () { // instance._cleanUpInternal(); //});

Instead add a clean up registry in the main PilazorTag and when this gets the sigint signal it calls all cleanup internal functions of the base class