slight change to socket monitoring loop per code-review from @tmm1

This commit is contained in:
Brian Lopez 2010-04-05 21:13:13 -07:00
parent 3357d3b077
commit 807f0a2730
1 changed files with 2 additions and 6 deletions

View File

@ -128,12 +128,8 @@ static VALUE rb_mysql_client_query(VALUE self, VALUE sql) {
rb_sys_fail(0);
}
if (retval == 0) {
continue;
}
if (client->status == MYSQL_STATUS_READY) {
break;
if (retval > 0) {
break;
}
}