Commit acf06014d6d457113874cc0520909c945a67c8b2

Authored by Adhidarma Hadiwinoto
1 parent b1c4abee25
Exists in master

sleep 12 sec before terminating

Showing 1 changed file with 3 additions and 0 deletions Side-by-side Diff

... ... @@ -243,6 +243,9 @@ function start(_config, _logger) {
243 243 else if (message.indexOf('!terminate') == 0) {
244 244  
245 245 logger.info("Terminate request by pm");
  246 + logout();
  247 + sleep.sleep(12);
  248 +
246 249 process.exit(code=0);
247 250  
248 251 }