ing
This commit is contained in:
@@ -3,7 +3,7 @@ package servlet
|
||||
import (
|
||||
"net"
|
||||
|
||||
logging "git.loafle.net/commons/logging-go"
|
||||
"git.loafle.net/commons/logging-go"
|
||||
crp "git.loafle.net/commons/rpc-go/protocol"
|
||||
crpj "git.loafle.net/commons/rpc-go/protocol/json"
|
||||
crr "git.loafle.net/commons/rpc-go/registry"
|
||||
@@ -73,7 +73,11 @@ func (s *RPCServlets) Handle(servletCtx server.ServletCtx,
|
||||
}
|
||||
|
||||
writeChan <- replyBuff
|
||||
case buf := <-s.RPCWriteChan:
|
||||
case buf, ok := <-s.RPCWriteChan:
|
||||
if !ok {
|
||||
break
|
||||
}
|
||||
|
||||
writeChan <- buf
|
||||
case <-stopChan:
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user