Skip to content

Commit

Permalink
chore: try fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
c43721 committed Oct 25, 2024
1 parent 45bc0b3 commit 503a136
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
10 changes: 1 addition & 9 deletions deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/rcon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export default class Rcon {
return;
}

await this.connection.write(encodedPacket);
await this.connection.write(new Uint8Array(encodedPacket));

const packet = await readAll(this.connection);

Expand Down Expand Up @@ -175,8 +175,8 @@ export default class Rcon {
protocol.ID_TERM,
""
);
this.connection.write(encodedTerminationPacket);

this.connection.write(new Uint8Array(encodedTerminationPacket));
} else if (decodedPacket.size <= 3700) {
// no need to check for ID_TERM here, since this packet will always be < 3700
resolve(response);
Expand Down

0 comments on commit 503a136

Please sign in to comment.