mirror of
https://github.com/giongto35/cloud-game.git
synced 2026-07-20 16:54:25 +00:00
Fix small bug, to not response on Empty Packet
This commit is contained in:
parent
c01ddc869b
commit
5de666d4af
1 changed files with 2 additions and 2 deletions
|
|
@ -111,8 +111,8 @@ func (c *Client) Receive(id string, f PacketHandler) {
|
|||
req.PacketID = response.PacketID
|
||||
req.SessionID = response.SessionID
|
||||
|
||||
// Skip rqeuest if it is EmptyPacket
|
||||
if req == EmptyPacket {
|
||||
// Skip response if it is EmptyPacket
|
||||
if response == EmptyPacket {
|
||||
return
|
||||
}
|
||||
resp, err := json.Marshal(req)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue