Skip to content

Commit a12022a

Browse files
authored
fix: imports (webtorrent#471)
1 parent ac3ea82 commit a12022a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/client/websocket-tracker.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import Socket from '@thaunknown/simple-websocket'
55
import Socks from 'socks'
66
import { arr2text, arr2hex, hex2bin, bin2hex, randomBytes } from 'uint8-util'
77

8-
import { DESTROY_TIMEOUT } from '../common.js'
8+
import common from '../common.js'
99
import Tracker from './tracker.js'
1010

1111
const debug = Debug('bittorrent-tracker:websocket-tracker')
@@ -138,7 +138,7 @@ class WebSocketTracker extends Tracker {
138138

139139
// Otherwise, wait a short time for potential responses to come in from the
140140
// server, then force close the socket.
141-
timeout = setTimeout(destroyCleanup, DESTROY_TIMEOUT)
141+
timeout = setTimeout(destroyCleanup, common.DESTROY_TIMEOUT)
142142

143143
// But, if a response comes from the server before the timeout fires, do cleanup
144144
// right away.

0 commit comments

Comments
 (0)