Skip to content

Commit

Permalink
Fix CloseSessionPacket code verification (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
patrislav authored Feb 5, 2024
1 parent 7a4896b commit f217dc0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions intents/packets/close_session.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ func (p *CloseSessionPacket) Unmarshal(packet json.RawMessage) error {
return err
}

if p.Code != SignMessagePacketCode {
return fmt.Errorf("packet code is not '%s', got '%s'", SignMessagePacketCode, p.Code)
if p.Code != CloseSessionPacketCode {
return fmt.Errorf("packet code is not '%s', got '%s'", CloseSessionPacketCode, p.Code)
}

return nil
Expand Down

0 comments on commit f217dc0

Please sign in to comment.