Skip to content

Commit

Permalink
fix self var
Browse files Browse the repository at this point in the history
  • Loading branch information
anandkumarpatel committed May 23, 2014
1 parent 82a8e24 commit c404599
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ App.prototype.start = function (cb) {
};

App.prototype.create = function () {
var self = this;
var app = require('./app');
this.server = http.createServer(app);

Expand All @@ -34,7 +35,7 @@ App.prototype.create = function () {
console.error('uncaughtException', err);
self.stop(self.gracefulExit);
});

return this.server;
};

Expand Down

0 comments on commit c404599

Please sign in to comment.