mirror of
https://github.com/Unitech/pm2.git
synced 2025-12-08 20:35:53 +00:00
add debug message interactor
This commit is contained in:
parent
64b07ca9a0
commit
8a2cae1dbf
@ -310,10 +310,12 @@ InteractorDaemonizer.disconnectRPC = function(cb) {
|
||||
try {
|
||||
debug('Closing RPC INTERACTOR');
|
||||
InteractorDaemonizer.client_sock.on('close', function() {
|
||||
debug('RPC INTERACTOR cleanly closed');
|
||||
return cb ? cb(null, {success:true}) : false;
|
||||
});
|
||||
InteractorDaemonizer.client_sock.close();
|
||||
} catch(e) {
|
||||
debug('Error while closing RPC INTERACTOR', e.stack || e);
|
||||
return cb ? cb(null, {success:true}) : false;
|
||||
}
|
||||
return false;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user