Skip to content
This repository was archived by the owner on Jul 21, 2023. It is now read-only.

Commit 23518b0

Browse files
authored
fix: remove set timeout (#182)
Apparently this should be fixed in node@16 which is our min version resolves #121
1 parent 9076b5b commit 23518b0

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/index.ts

+2-5
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,8 @@ export class WebSockets implements Transport {
8585
const abort = new Promise((resolve, reject) => {
8686
onAbort = () => {
8787
reject(new AbortError())
88-
// FIXME: https://github.com/libp2p/js-libp2p-websockets/issues/121
89-
setTimeout(() => {
90-
rawSocket.close().catch(err => {
91-
log.error('error closing raw socket', err)
92-
})
88+
rawSocket.close().catch(err => {
89+
log.error('error closing raw socket', err)
9390
})
9491
}
9592

0 commit comments

Comments
 (0)