forked from ElementsProject/lightning
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libplugin: allow freeing in timer callback, clarify docs, allow neste…
…d timers. 1. Allow timers to be freed in their callback. 2. Clarify in header that we have to terminate our timer with timer_finished() eventually. 3. We don't currently have plugins with more than one outstanding timer, but it certainly would be possible, so fix in_timer to be a counter. Suggested-by: @ZmnSCPxj Signed-off-by: Rusty Russell <[email protected]>
- Loading branch information
1 parent
9b61c19
commit 6a8cd9a
Showing
2 changed files
with
16 additions
and
11 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