mirror of
https://github.com/tribufu/node-gamedig
synced 2026-05-06 15:17:36 +00:00
Bring discord protocol up to date with gamedig 3.0
This commit is contained in:
parent
d9310db38b
commit
fe124a4487
6 changed files with 43 additions and 29 deletions
|
|
@ -66,7 +66,12 @@ class QueryRunner {
|
|||
port: gameOptions.port + (gameQueryPortOffset || 0)
|
||||
});
|
||||
} else {
|
||||
throw new Error("Could not determine port to query. Did you provide a port or gameid?");
|
||||
// Hopefully the request doesn't need a port. If it does, it'll fail when making the request.
|
||||
attempts.push({
|
||||
...defaultOptions,
|
||||
...gameOptions,
|
||||
...userOptions
|
||||
});
|
||||
}
|
||||
|
||||
const numRetries = userOptions.maxAttempts || gameOptions.maxAttempts || defaultOptions.maxAttempts;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue