ing
This commit is contained in:
parent
57065b83df
commit
e84aea5d11
|
@ -4,6 +4,8 @@ import (
|
|||
"fmt"
|
||||
"io"
|
||||
"time"
|
||||
|
||||
logging "git.loafle.net/commons/logging-go"
|
||||
)
|
||||
|
||||
func connReadHandler(readWriteHandler ReadWriteHandler, conn Conn, stopChan <-chan struct{}, doneChan chan<- error, readChan chan<- []byte) {
|
||||
|
@ -77,11 +79,13 @@ func connWriteHandler(readWriteHandler ReadWriteHandler, conn Conn, stopChan <-c
|
|||
|
||||
wc, err = conn.NextWriter(TextMessage)
|
||||
if err != nil {
|
||||
logging.Logger().Debug(err)
|
||||
return
|
||||
}
|
||||
wc.Write(message)
|
||||
|
||||
if err = wc.Close(); nil != err {
|
||||
logging.Logger().Debug(err)
|
||||
return
|
||||
}
|
||||
case <-ticker.C:
|
||||
|
|
Loading…
Reference in New Issue
Block a user