From 54b03eaeeea23b91bb5555f4292c77e8e46eeca9 Mon Sep 17 00:00:00 2001 From: Peter Grassberger Date: Fri, 15 Jul 2016 20:54:09 +0200 Subject: cancel: don't close socket myself diff --git a/www/js/importer.js b/www/js/importer.js index c7e13c7..fc2e462 100644 --- a/www/js/importer.js +++ b/www/js/importer.js @@ -486,10 +486,6 @@ Rdxport.Upload.prototype.close = function() { Rdxport.Upload.prototype.cancel = function() { this.webSocket.send(JSON.stringify({ COMMAND: 'cancel' })); - this.webSocket.close(); - // todo: only do this when i get "done" - importer.removeUpload(this); - this.group.fetchCarts(); }; Rdxport.Upload.prototype.importFileUploadSuccess = function() { -- cgit v0.10.2