From 9a637033405f8fc3435b0a21c7e0413ea54a6127 Mon Sep 17 00:00:00 2001 From: lilia Date: Wed, 30 Sep 2015 12:34:10 -0700 Subject: [PATCH] Close the socket/keepalive when going offline // FREEBIE --- js/background.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/background.js b/js/background.js index 6ccdb85c..db2aee0f 100644 --- a/js/background.js +++ b/js/background.js @@ -188,6 +188,7 @@ setTimeout(init, 60000); } else { console.log('offline'); + messageReceiver.close(); window.addEventListener('online', init); } return;