project-chip / rs-matter

Rust implementation of the Matter protocol. Status: Experimental
Apache License 2.0
303 stars 43 forks source link

Bugfix: panic when a subscription is not reported on yet #158

Closed ivmarkov closed 2 months ago

ivmarkov commented 2 months ago

Subject says it all - panic was due to duration overflow (as it is initially Instant::MAX)

andy31415 commented 2 months ago

@ivmarkov maybe as a followup, Instant::MAX usage seems suspect as other code may also miss this. maybe using Option where relevant would be better.