for문 제거

main
JungJun 3 years ago
parent 0e94ecaf5a
commit a58eda893f

@ -171,13 +171,13 @@ func StatsCommandVG(t *icsnet.IcsTCPNet, bufend string) {
l.Printf(icslog.LOG_LEVEL_INFO, -1, "Connected from - %s", t.RemoteAddr())
for {
// for {
statReads, rlen, rerr := t.ReadS(10137, bufend) // 여기서 전체 몇 byte씩 읽어서 로그를 찍을건지 알아야함
if rerr != nil {
if rerr.GetError() != io.EOF {
l.Printf(icslog.LOG_LEVEL_ERROR, -1, "[Stat Command] ReadS Error! - %s[%d:%d]",
rerr.GetError(), rlen, len(statReads))
break
return
}
} else {
fmt.Printf("Recved Stat Command(%s) %d \n", statReads, rlen)
@ -248,7 +248,7 @@ func StatsCommandVG(t *icsnet.IcsTCPNet, bufend string) {
fmt.Printf("stats- %s \n", statInfos.SttText)
fmt.Printf("stats- %s \n", statInfos.TtsText)
}
}
// }
}
func StatsCommandVA(t *icsnet.IcsTCPNet, bufend string) {

Loading…
Cancel
Save