Skip to content

Commit

Permalink
cancel paranoid checking when closing down the subscriber (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
kesla authored and andywer committed Oct 16, 2018
1 parent 7af512e commit 074629d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ function createPostgresSubscriber (connectionConfig?: pg.ConnectionConfig, optio
close () {
connectionLogger("Closing PostgreSQL notification listener.")
closing = true
cancelParanoidChecking()
return dbClient.end()
},
getSubscribedChannels () {
Expand Down

0 comments on commit 074629d

Please sign in to comment.