]> git.meshlink.io Git - meshlink/commit
Never call timeout_set() outside callbacks if no callback is set.
authorGuus Sliepen <guus@meshlink.io>
Mon, 15 Feb 2021 21:16:04 +0000 (22:16 +0100)
committerGuus Sliepen <guus@meshlink.io>
Mon, 15 Feb 2021 21:16:04 +0000 (22:16 +0100)
commitf00c8df9175fc1aed22f3a889ca039beb78bb98d
treec3103961ada622506c5b4bfb05fa1efa6e1a1c29
parent56b4ea7e7a8fe29c1c1066def42c792cb51540d0
Never call timeout_set() outside callbacks if no callback is set.

We should never try to update a timer if it was never added to the event
loop. There were a few places that didn't have an explicit check to
prevent this from happening.
src/meshlink.c
src/net.c
src/protocol.c