Close the provisioning socket

This commit is contained in:
lilia 2015-05-04 22:26:32 -07:00
parent 43d6efcd9e
commit 37c496f4f0
3 changed files with 8 additions and 2 deletions

View file

@ -40,6 +40,7 @@ TextSecureWebSocket = function (url) {
function resetKeepAliveTimer() {
clearTimeout(keepAliveTimer);
if (calledClose) { return; }
keepAliveTimer = setTimeout(function() {
if (socket.readyState === WebSocket.OPEN) {
socket.send(