reset stream object on destroy

This commit is contained in:
nklhrstv 2020-03-19 09:44:06 +02:00
parent bf3364e046
commit 0dd46973b2

View file

@ -105,6 +105,7 @@ function withStreamingServer(Video) {
} else {
if (args && args.commandName === 'destroy') {
destroyed = true;
stream = null;
events.removeAllListeners();
events.on('error', function() { });
}