mirror of
https://github.com/adamdruppe/arsd.git
synced 2025-05-02 08:10:06 +03:00
fix close bug
This commit is contained in:
parent
5c38e03301
commit
dcc24f1f58
1 changed files with 4 additions and 1 deletions
3
mysql.d
3
mysql.d
|
@ -229,7 +229,10 @@ class MySql : Database {
|
||||||
}
|
}
|
||||||
|
|
||||||
void close() {
|
void close() {
|
||||||
|
if(mysql) {
|
||||||
mysql_close(mysql);
|
mysql_close(mysql);
|
||||||
|
mysql = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
~this() {
|
~this() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue