add debug message interactor

This commit is contained in:
Alexandre Strzelewicz 2014-08-29 19:44:23 +02:00
parent 64b07ca9a0
commit 8a2cae1dbf

View File

@ -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;