Skip to content

Commit

Permalink
bump for catchable .close() fix
Browse files Browse the repository at this point in the history
  • Loading branch information
James Halliday committed Jan 21, 2012
1 parent 419107b commit 26bd87b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -273,11 +273,12 @@ dnode.prototype.close = function () {
var self = this
try {
self.server.close();
} catch (e) {
}
catch (e) {
if (e.message === 'Not running') {
self.server.emit('close');
} else {
// forward as error event
}
else {
self.server.emit('error', e);
}
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name" : "dnode",
"version" : "0.9.6",
"version" : "0.9.7",
"description" : "freestyle RPC",
"main" : "./index.js",
"keywords" : [
Expand Down

0 comments on commit 26bd87b

Please sign in to comment.