if PQconsumeInput returns 0, something broke, throw an error!

This commit is contained in:
wink 2012-03-01 15:13:47 -06:00
parent b689136e75
commit e0313aeffd

View File

@ -384,6 +384,8 @@ protected:
if(revents & EV_READ) {
TRACE("revents & EV_READ");
if(PQconsumeInput(connection_) == 0) {
End();
EmitLastError();
LOG("Something happened, consume input is 0");
return;
}