Skip to content

Commit

Permalink
Fix connection on deno 1.36.3 (#673)
Browse files Browse the repository at this point in the history
  • Loading branch information
JorritPosthuma authored Sep 12, 2023
1 parent b4c2526 commit bf082a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ function Connection(options, queues = {}, { onopen = noop, onend = noop, onclose
try {
x = options.socket
? (await Promise.resolve(options.socket(options)))
: net.Socket()
: new net.Socket()
} catch (e) {
error(e)
return
Expand Down

0 comments on commit bf082a5

Please sign in to comment.