0
0
Fork 0
mirror of https://github.com/schollz/croc.git synced 2025-10-11 13:21:00 +02:00
This commit is contained in:
Zack Scholl 2018-09-23 14:26:17 -07:00
parent 7651ed0562
commit fe38107c42

View file

@ -3,7 +3,6 @@ package comm
import (
"bytes"
"fmt"
"log"
"net"
"strconv"
"strings"
@ -53,7 +52,6 @@ func (c Comm) Read() (buf []byte, numBytes int, bs []byte, err error) {
tmp := make([]byte, 1)
c.connection.Read(tmp)
bs = append(bs, tmp...)
log.Println(bs)
}
numBytes, err = strconv.Atoi(strings.TrimLeft(string(bs), "0"))
if err != nil {