Skip to content
This repository has been archived by the owner on Nov 25, 2021. It is now read-only.

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
alepee committed Jul 8, 2015
1 parent a151a0e commit 73f10df
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions job.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ function Job(lp) {
self.identifier = parseInt(data
.toString()
.match(/^request id is .*-(\d+)/)[1]);
});

lp.on('exit', function(code) {
if (0 === code) {
self.emit('sent');
}
else {
self.emit('error', error);
}
});
lp.on('exit', function(code) {
if (0 === code) {
self.emit('sent', self.identifier);
}
else {
self.emit('error', error);
}
});
}

Expand Down

0 comments on commit 73f10df

Please sign in to comment.