Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NO-JIRA: [Python] Fix exception in IOHandler.on_selectable_expired/update #364

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Mar 1, 2023

  1. NO-JIRA: [Python] Fix exception in IOHandler.on_selectable_expired/up…

    …date
    
    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]>
    Jmennius committed Mar 1, 2023
    Configuration menu
    Copy the full SHA
    8b75942 View commit details
    Browse the repository at this point in the history