This commit is contained in:
crusader 2017-11-08 19:24:05 +09:00
parent 64216d22c4
commit 6cf3533828

View File

@ -42,12 +42,12 @@ func (s *Socket) WaitRequest() (*SocketConn, error) {
return nil, err return nil, err
} }
sc := retainSocketConn() s.sc = retainSocketConn()
sc.s = s s.sc.s = s
sc.MessageType = mt s.sc.MessageType = mt
sc.r = r s.sc.r = r
return sc, nil return s.sc, nil
} }
func (s *Socket) NextWriter(messageType int) (io.WriteCloser, error) { func (s *Socket) NextWriter(messageType int) (io.WriteCloser, error) {