Skip to content
This repository was archived by the owner on Feb 9, 2022. It is now read-only.
This repository was archived by the owner on Feb 9, 2022. It is now read-only.

Process kept alive even after close() and destroy() are called #217

@MattIPv4

Description

@MattIPv4

I have a client that connects to IRC and posts a single message before then disconnecting.

ChatClient#connect and ChatClient#jon both return promises, but ChatClient#close and ChatClient#destroy do not.

When I call ChatClient#close before then going to exit the script, it hangs for ages before eventually exiting (though sometimes it seems to hang forever -- 6hrs before GitHub Actions killed it).

What's going on? What is the proper way to close the connection and ensure its actually closed, in a sensible time period?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions