Commit e6fc9c4a99c3f746d9b91e24bdcaa3d9f0109352

Authored by Adhidarma Hadiwinoto
1 parent 92d2ce0df0
Exists in master

don't loop if there is an exception

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

... ... @@ -48,9 +48,10 @@ var _keepAliveLoop = function() {
48 48 logger.error(e);
49 49 logger.info("Try to reconnecting to yahoo messenger");
50 50 YahooMessenger.login(config.yahoomessenger.username, config.yahoomessenger.password);
  51 + return;
51 52 }
52   - keepAliveLoop();
53 53  
  54 + keepAliveLoop();
54 55 }
55 56  
56 57 function keepAliveLoop() {