Skip to content

Commit 28fbbaf

Browse files
committed
Only use setKeepAlive if available
1 parent 1817387 commit 28fbbaf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deno/polyfills.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export const net = {
9494

9595
const encrypted = socket.encrypted
9696
socket.raw = raw
97-
keepAlive != null && raw.setKeepAlive(keepAlive)
97+
keepAlive != null && raw.setKeepAlive && raw.setKeepAlive(keepAlive)
9898
socket.readyState = 'open'
9999
socket.encrypted
100100
? call(socket.events.secureConnect)

0 commit comments

Comments
 (0)