Commit 2307442a0dfdc5a42e309b02e19371b5affed0b3

Authored by Adhidarma Hadiwinoto
1 parent 7370d6a4ae
Exists in master

coba bugfix

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

... ... @@ -209,11 +209,16 @@ ym.on('pm', onPm);
209 209 ym.on('buddyAddRequest', onBuddyAddRequest);
210 210  
211 211 setTimeout(function() {
212   - ym.newInstance,
  212 + function () {
  213 + ym.newInstance();
  214 + },
213 215 3000
214 216 })
215 217  
216 218 setInterval(function() {
  219 + if (!isOnline) {
  220 + return;
  221 + }
217 222 logger.verbose('Sending keepalive packet');
218 223 ym.keepAlive();
219 224 }, keepalive_interval);