X-Git-Url: https://git.r.bdr.sh/rbdr/mobius/blobdiff_plain/d80b37ca4c5801d5dbb5c4313a3d1d5fbdf2d593..e005c191842ccab0e9600a2221616f434ad0afc7:/hotline/tracker.go?ds=sidebyside diff --git a/hotline/tracker.go b/hotline/tracker.go index 69d9fd4..0dce949 100644 --- a/hotline/tracker.go +++ b/hotline/tracker.go @@ -110,7 +110,7 @@ func GetListing(addr string) ([]ServerRecord, error) { if readLen, err = conn.Read(buf); err != nil { return nil, err } - totalRead += readLen // 1514 + totalRead += readLen // 1514 var th TrackerHeader if err := binary.Read(bytes.NewReader(buf[:6]), binary.BigEndian, &th); err != nil { @@ -141,7 +141,6 @@ func GetListing(addr string) ([]ServerRecord, error) { totalSrv := int(binary.BigEndian.Uint16(info.SrvCount[:])) srvBuf := buf[14:totalRead] - totalRead += readLen var servers []ServerRecord