give fileStreams a little bit more time before closing them

pull/1/head
ansuz 5 years ago
parent 4ba36a9173
commit bc13a21796

@ -64,7 +64,7 @@ const destroyStream = function (stream) {
try { stream.close(); } catch (err) { console.error(err); }
setTimeout(function () {
try { stream.destroy(); } catch (err) { console.error(err); }
}, 5000);
}, 15000);
};
const ensureStreamCloses = function (stream, id, ms) {
@ -729,7 +729,7 @@ var getChannel = function (env, id, _callback) {
delete env.channels[id];
destroyStream(channel.writeStream, path);
//console.log("closing writestream");
}, 30000);
}, 120000);
channel.delayClose();
env.channels[id] = channel;
done(void 0, channel);

Loading…
Cancel
Save