make sure we invalidate the closed FD in case it's value is reused on a new connection
This commit is contained in:
parent
6e5cda6a52
commit
841ee2bba4
|
@ -144,6 +144,7 @@ static VALUE nogvl_close(void * ptr) {
|
|||
if (!wrapper->closed) {
|
||||
wrapper->closed = 1;
|
||||
mysql_close(wrapper->client);
|
||||
wrapper->client->net.fd = -1;
|
||||
if (!wrapper->freed) {
|
||||
free(wrapper->client);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue