Skip to content

Commit d17c968

Browse files
committed
Closes #1
Thanks @csvigliano and @dhensby
1 parent dea4bbb commit d17c968

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ class MsSql {
9494
if ( this._isConnected ) {
9595
let pool = await this._pool();
9696
await pool.close();
97+
await mssql.close();
9798
this._isConnected = false;
9899
}
99100
}
@@ -123,7 +124,7 @@ class MsSql {
123124
*/
124125
async beginTransaction() {
125126
if ( this.inTransaction() ) {
126-
false;
127+
return false;
127128
}
128129
let pool = await this._pool();
129130
this.transaction = new mssql.Transaction( pool );

0 commit comments

Comments
 (0)