Skip to content

Commit

Permalink
Fix error with incomplete packets call.
Browse files Browse the repository at this point in the history
  • Loading branch information
PhlexPlexico committed Jun 18, 2023
1 parent ed518b9 commit 393d3f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utility/serverrcon.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class ServerRcon {
}

let get5Status = await this.execute("get5_status");
get5Status = await fixIncompletePackets(get5Status);
get5Status = await this.fixIncompletePackets(get5Status);

if (get5Status.includes("Unknown command")) {
return "unknown";
Expand All @@ -84,7 +84,7 @@ class ServerRcon {
}
let get5Status = await this.execute("get5_web_available");
// Weird L coming in from the console call? Incomplete packets.
get5Status = await fixIncompletePackets(get5Status);
get5Status = await this.fixIncompletePackets(get5Status);
let get5JsonStatus = await JSON.parse(get5Status);
if (get5Status.includes("Unknown command")) {
if (this.getGet5Version().includes("0.14")) {
Expand Down

0 comments on commit 393d3f2

Please sign in to comment.