Commit b7829d6
authored
fix(irc): prevent async-tasks to be garbage-collected too early (#144)
Python only keeps a weak-reference to tasks created, so when the
GC comes by, it can remove tasks that are not assigned to a
variable.
The async-helper changes the factory to always store a strong
reference, avoiding this issue.1 parent 5f467f9 commit b7829d6
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
| |||
281 | 283 | | |
282 | 284 | | |
283 | 285 | | |
284 | | - | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
285 | 289 | | |
286 | 290 | | |
287 | 291 | | |
| |||
0 commit comments