Skip to content

Commit

Permalink
Channel: do not close on exit status/signal
Browse files Browse the repository at this point in the history
Data can still be sent after exit-status/signal, so sending close
early can prevent reception of that data.
  • Loading branch information
mscdex committed Sep 1, 2015
1 parent 9ded3a4 commit ae49020
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/Channel.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,6 @@ function Channel(info, client, opts) {
if (!server) {
if (info.request === 'exit-status') {
self.emit('exit', exitCode = info.code);
self.close();
return;
} else if (info.request === 'exit-signal') {
self.emit('exit',
Expand All @@ -192,7 +191,6 @@ function Channel(info, client, opts) {
exitDump = info.coredump,
exitDesc = info.description,
exitLang = info.lang);
self.close();
return;
}
}
Expand Down

0 comments on commit ae49020

Please sign in to comment.