This commit is contained in:
Suwings 2020-03-04 16:24:11 +08:00
parent d2f2201171
commit 24bd218925

View File

@ -175,7 +175,7 @@ class ServerProcess extends EventEmitter {
});
});
// 进程事件传递
stream.on('exit', (e) => {
stream.on('close', (e) => {
self.emit('exit', code);
self.stop();
});