-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move serialization of chip::Device earlier. (#7218)
Serializing in the destructor doesn't really do the right thing, because by then Reset() has usually been called and hence mSessionManager is null. Instead, serialize in Reset() if were resetting an active device. This fixes the remaining problems I was seeing with chip-tool messages being rejected for having the wrong message counter values (due to us never serializing the incremented message counter).
- Loading branch information
1 parent
78bfa34
commit 2442296
Showing
2 changed files
with
31 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters