Permalink
Browse files

bump for catchable .close() fix

  • Loading branch information...
1 parent 419107b commit 26bd87b656880fec1e28abd67a9de071be5d37db @substack committed Jan 21, 2012
Showing with 5 additions and 4 deletions.
  1. +4 −3 index.js
  2. +1 −1 package.json
View
@@ -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);
}
}
View
@@ -1,6 +1,6 @@
{
"name" : "dnode",
- "version" : "0.9.6",
+ "version" : "0.9.7",
"description" : "freestyle RPC",
"main" : "./index.js",
"keywords" : [

0 comments on commit 26bd87b

Please sign in to comment.