Skip to content

Commit 0b1bc76

Browse files
committed
fix ws
1 parent b839bb8 commit 0b1bc76

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/mineflayer/minecraft-protocol-extra.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ export const pingServerVersion = async (ip: string, port?: number, mergeOptions:
3131
})
3232
if (mergeOptions.stream) {
3333
mergeOptions.stream.on('end', (err) => {
34-
reject(new Error('Connection closed'))
34+
setTimeout(() => {
35+
reject(new Error('Connection closed. Please report if you see this but the server is actually fine.'))
36+
})
3537
})
3638
}
3739
})

0 commit comments

Comments
 (0)