mirror of
https://github.com/tribufu/node-gamedig
synced 2026-05-06 15:17:36 +00:00
Fix minecraft never throwing when server is unresponsive
This commit is contained in:
parent
df3f04b506
commit
1c351fc3a4
1 changed files with 4 additions and 0 deletions
|
|
@ -32,6 +32,10 @@ class Minecraft extends Core {
|
|||
state.raw.vanilla = vanillaState;
|
||||
state.raw.bedrock = bedrockState;
|
||||
|
||||
if (!vanillaState && !bedrockState) {
|
||||
throw new Error('No protocols succeeded');
|
||||
}
|
||||
|
||||
if (vanillaState) {
|
||||
try {
|
||||
let name = '';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue