mirror of
https://github.com/brianc/node-postgres.git
synced 2025-12-08 20:16:25 +00:00
if PQconsumeInput returns 0, something broke, throw an error!
This commit is contained in:
parent
b689136e75
commit
e0313aeffd
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user