mirror of
https://github.com/tribufu/node-gamedig
synced 2026-05-18 09:35:50 +00:00
Clean up reader.string
This commit is contained in:
parent
6189d2fa62
commit
fc5975bf0c
12 changed files with 58 additions and 61 deletions
|
|
@ -102,7 +102,7 @@ class Gamespy1 extends Core {
|
|||
|
||||
return await this.udpSend('\\'+type+'\\', buffer => {
|
||||
const reader = this.reader(buffer);
|
||||
const str = reader.string({length:buffer.length});
|
||||
const str = reader.string(buffer.length);
|
||||
const split = str.split('\\');
|
||||
split.shift();
|
||||
const data = {};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue