-
Notifications
You must be signed in to change notification settings - Fork 550
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleanup refs to callback in Handle/TimerHandle on cancel
Currently there's a lot of potential to create reference cycles between callback handles and protocols/transports that use them. Basically any bound-method has a potential to create such a cycle. This happens especially often for TimerHandles used to ensure timeouts. Fix that by ensuring that the handle clears the ref to its callback when the 'cancel()' method is called.
- Loading branch information
Showing
1 changed file
with
20 additions
and
13 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