mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-11-22 22:17:31 +03:00
Updated 'cancel' for zip-writer
This commit is contained in:
parent
12b063f455
commit
2690546113
@ -2161,12 +2161,13 @@ function createMeshCore(agent) {
|
||||
this.xws.write(Buffer.from(JSON.stringify({ action: 'dialogmessage', msg: null })));
|
||||
this.xws.write(Buffer.from(JSON.stringify({ action: 'refresh' })));
|
||||
});
|
||||
var zip = require('zip-writer').write({ files: p });
|
||||
zip.pipe(out);
|
||||
this.zip = require('zip-writer').write({ files: p });
|
||||
this.zip.pipe(out);
|
||||
break;
|
||||
case 'cancel':
|
||||
// TODO: Cancel zip operation if present
|
||||
//sendConsoleText('Cancel operation');
|
||||
this.zip.cancel(function () { sendConsoleText('Zip operation was cancelled'); });
|
||||
break;
|
||||
default:
|
||||
// Unknown action, ignore it.
|
||||
|
Loading…
Reference in New Issue
Block a user