Skip to content

Commit db528de

Browse files
committed
Merge pull request #9 from mcornella/patch-1
Fix node crash (server is not defined)
2 parents b88fed8 + 9ecc0ff commit db528de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

code/guestbook-node/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ client.on("error", function (err) {
4141

4242
process.on("SIGTERM", function () {
4343
client.quit();
44-
server.close(function () {
44+
app.close(function () {
4545
process.exit(0);
4646
});
4747
});

0 commit comments

Comments
 (0)