Skip to content

Commit cbfe3f2

Browse files
author
huzhou
committed
~ avoid dup server#close
1 parent e4b4aa4 commit cbfe3f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/process.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ Process.prototype.listen = function() {
473473
log('[graceful] app status:%s', app.listening);
474474
if(app.listening){
475475
try {
476-
if(app.server){
476+
if(app.server && app.server._handle){
477477
log('[graceful] app server shutdown');
478478
app.server.close();
479479
}

0 commit comments

Comments
 (0)