diff --git a/core/token-pooling/sql-token-persistence.js b/core/token-pooling/sql-token-persistence.js index 6f7eab6b7320bccc79208332f7fb335b32f3b026..4c706966d75d12a1f1d1e176d4d17e8a14e0aa89 100644 --- a/core/token-pooling/sql-token-persistence.js +++ b/core/token-pooling/sql-token-persistence.js @@ -20,7 +20,9 @@ export default class SqlTokenPersistence { } async stop() { - await this.pool.end() + if (this.pool) { + await this.pool.end() + } } async onTokenAdded(token) {