summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Grassberger <petertheone@gmail.com>2016-07-15 18:54:09 (GMT)
committerPeter Grassberger <petertheone@gmail.com>2016-07-15 18:54:09 (GMT)
commit54b03eaeeea23b91bb5555f4292c77e8e46eeca9 (patch)
treeb0e09fce54d3ffe330f37c56d63dc120cfb5b5a0
parent75035692396e859a47677723e281deac925ba726 (diff)
cancel: don't close socket myself
-rw-r--r--www/js/importer.js4
1 files changed, 0 insertions, 4 deletions
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() {