slight change to socket monitoring loop per code-review from @tmm1
This commit is contained in:
parent
3357d3b077
commit
807f0a2730
|
@ -128,11 +128,7 @@ static VALUE rb_mysql_client_query(VALUE self, VALUE sql) {
|
||||||
rb_sys_fail(0);
|
rb_sys_fail(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (retval == 0) {
|
if (retval > 0) {
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (client->status == MYSQL_STATUS_READY) {
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue