fix close bug

This commit is contained in:
Adam D. Ruppe 2020-11-03 10:08:33 -05:00
parent 5c38e03301
commit dcc24f1f58
1 changed files with 4 additions and 1 deletions

View File

@ -229,7 +229,10 @@ class MySql : Database {
} }
void close() { void close() {
mysql_close(mysql); if(mysql) {
mysql_close(mysql);
mysql = null;
}
} }
~this() { ~this() {