Commit 4d22a80
committed
NO-JIRA: [Python] Fix exception in IOHandler.on_selectable_expired/update
This occasionally happens after my laptop wakes up from overnight sleep.
IOHandler.on_selectable_expired() is invoked with `selectable` that has
`_terminated=True` and `_transport=None` so when `IOHandler.update()`
is called it crashes when trying to handle the exception
(since transport is None).
Fix this by checking if transport attribute is set and that selectable is not
terminated before invoking `IOHandler.update()`.
Signed-off-by: Ievgen Popovych <[email protected]>1 parent a920192 commit 4d22a80
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1234 | 1234 | | |
1235 | 1235 | | |
1236 | 1236 | | |
1237 | | - | |
| 1237 | + | |
| 1238 | + | |
1238 | 1239 | | |
1239 | 1240 | | |
1240 | 1241 | | |
| |||
0 commit comments