now waiting for response to be stored before ending streaming request

This commit is contained in:
2016-07-31 23:07:09 +02:00
parent 28fa5349d7
commit 489a47b9bf
5 changed files with 21 additions and 20 deletions

View File

@ -220,9 +220,11 @@ export class Dockersock {
return done.promise;
};
endRequests() {
this.requestObjectmap.forEach((itemArg: plugins.request.Request) => {
itemArg.emit("end");
});
this.requestObjectmap.wipe();
setTimeout(() => {
this.requestObjectmap.forEach((itemArg: plugins.request.Request) => {
itemArg.emit("end");
});
this.requestObjectmap.wipe();
}, 5000);
};
}