mirror of
https://github.com/gamedig/node-gamedig.git
synced 2024-11-19 02:00:38 +01: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…
Reference in a new issue