Skip to content

Always shut down server when using serve() #264

Closed
@bcb

Description

@bcb

The server only shuts down when exiting with ctrl-c (keyboard interrupt).

Add a try block to always shut down the server when exiting other ways. e.g sys.exit

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions