Skip to content

Commit

Permalink
Fix onMsgAck return nil bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
wubenqi committed Jul 16, 2018
1 parent 8db915e commit 5c20c06
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions server/access/auth_key/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,11 @@ func (s *AuthKeyServer) OnServerMessageDataArrived(conn *net2.TcpConnection, md
return nil
}

// Fix onMsgAck return nil bug.
if hrsp == nil {
return nil
}

return zproto.SendMessageByConn(conn, md, hrsp)
}

Expand Down

0 comments on commit 5c20c06

Please sign in to comment.