Skip to content

Commit

Permalink
Update GoCallBack.go
Browse files Browse the repository at this point in the history
  • Loading branch information
qtgolang committed Nov 24, 2023
1 parent 5313d27 commit 23331d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SunnyNet/GoCallBack.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func (k *TcpConn) SetBody(data []byte) bool {
}

// Close 关闭TCP连接
func (k *TcpConn) Close(int) bool {
func (k *TcpConn) Close() bool {
if k.Type == public.SunnyNetMsgTypeTCPAboutToConnect {
return false
}
Expand Down Expand Up @@ -218,7 +218,7 @@ func (k *WsConn) SendToClient(MessageType int, data []byte) bool {
}

// Close 关闭Websocket连接
func (k *WsConn) Close(int) bool {
func (k *WsConn) Close() bool {
k.c.Sync.Lock()
defer k.c.Sync.Unlock()
if k.c.Server != nil {
Expand Down

0 comments on commit 23331d2

Please sign in to comment.