Skip to content

In pure js, pg.end() is not quiting everything #559

Closed
@ghost

Description

In pure js package (pg.js, "version": "2.11.1"), when there is an established connection with

pg.connect(conString, function(err, client, done) {
});

and if done() is not called, last call in the script

pg.end()

is not quitting the program.
When done() is inserted, quitting happens, therefore, we conclude that pg.end() is not ending not-done connection(s).
If this is an intended behaviour, please, document it, as not 100% end-y. Otherwise, fix is needed.

On a side, kudos for this sweet package! Really like it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions