Skip to content

Commit ad1df21

Browse files
committed
fixup
1 parent 5059401 commit ad1df21

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

doc/api/net.markdown

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -228,9 +228,10 @@ shown below.
228228

229229
Stops the server from accepting new connections and keeps existing
230230
connections. This function is asynchronous, the server is finally
231-
closed when all connections are ended and the server emits a `'close'`
232-
event. The last parameter `callback` will be added as an listener for the
233-
['close'][] event.
231+
closed when all connections are ended and the server emits a ['close'][] event.
232+
The optional `callback` will be called once the `'close'` event occurs. Unlike
233+
that event, it will be called with an Error as its only argument if the server
234+
was not open when it was closed.
234235

235236
### server.address()
236237

0 commit comments

Comments
 (0)