Skip to content

Commit bf082a5

Browse files
Fix connection on deno 1.36.3 (#673)
1 parent b4c2526 commit bf082a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/connection.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ function Connection(options, queues = {}, { onopen = noop, onend = noop, onclose
129129
try {
130130
x = options.socket
131131
? (await Promise.resolve(options.socket(options)))
132-
: net.Socket()
132+
: new net.Socket()
133133
} catch (e) {
134134
error(e)
135135
return

0 commit comments

Comments
 (0)