diff --git a/servlet.go b/servlet.go index 1e5f5d6..2446a34 100644 --- a/servlet.go +++ b/servlet.go @@ -91,7 +91,6 @@ func (s *rpcServlet) Start(parentCTX cuc.Context, conn interface{}, doneChan cha } func (s *rpcServlet) Send(method string, args ...interface{}) (err error) { - s.sendMtx.RLock() noti := ¬ification{ method: method, args: args, @@ -101,7 +100,6 @@ func (s *rpcServlet) Send(method string, args ...interface{}) (err error) { } s.responseQueueChan <- rs - s.sendMtx.RUnlock() return nil }