diff --git a/business/jxstore/event/event_tcp.go b/business/jxstore/event/event_tcp.go index 0ead43ffd..9b8af7855 100644 --- a/business/jxstore/event/event_tcp.go +++ b/business/jxstore/event/event_tcp.go @@ -141,10 +141,6 @@ func ListenTcp() { return } globals.SugarLogger.Debugf("begin listenTcp port 8000......") - go HandleTcpMessages() - go HandleCheckTcpHeart() - go doPrint(printMsgChanFail) - go doPrint2(printMsgChan) for { c, err := l.Accept() if err != nil { @@ -153,6 +149,10 @@ func ListenTcp() { } go handleConn(c) } + go HandleTcpMessages() + go HandleCheckTcpHeart() + go doPrint(printMsgChanFail) + go doPrint2(printMsgChan) } func handleConn(c net.Conn) {