Skip to content

Commit a9fff10

Browse files
committed
unref timer to allow exit
1 parent fff6640 commit a9fff10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/connection.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ function Connection(options = {}) {
147147
function connect() {
148148
connect_timeout && (
149149
clearTimeout(connect_timer),
150-
connect_timer = setTimeout(connectTimedOut, connect_timeout * 1000)
150+
connect_timer = setTimeout(connectTimedOut, connect_timeout * 1000).unref()
151151
)
152152
socket.connect()
153153
}

0 commit comments

Comments
 (0)