Skip to content

Commit d5f7581

Browse files
tiny fix
1 parent ae4e962 commit d5f7581

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/PuddySqlInstance.mjs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -552,11 +552,6 @@ class PuddySqlInstance extends PuddySqlEngine {
552552

553553
// Set SQL methods (all, get, run)
554554
this.setSqlite3(this.#db);
555-
556-
// Graceful shutdown on process termination
557-
process.on('SIGINT', async () => {
558-
await this.destroy();
559-
});
560555
} else throw new Error('SQL has already been initialized in this instance!');
561556
}
562557

@@ -719,11 +714,6 @@ class PuddySqlInstance extends PuddySqlEngine {
719714
// Set up the SQL methods (all, get, run)
720715
this.setPostgre(this.#db);
721716

722-
// Attach handler to close DB on process termination
723-
process.on('SIGINT', async () => {
724-
await this.destroy();
725-
});
726-
727717
// Connect to the PostgreSQL database
728718
await this.#db.connect();
729719
} else throw new Error('SQL has already been initialized in this instance!');

0 commit comments

Comments
 (0)