Branch: Tag:

2016-02-17

2016-02-17 22:45:08 by Stephen R. van den Berg <srb@cuci.nl>

pgsql: Check for destructed object first, before examining members.

597:   #endif      final void _processloop(.pgsql_util.conxion ci) { -  if(c && (!ci || c!=ci)) // If we are switching or dropping connections -  c->close(); // force a close on the old socket +     if(!this) // Oops, current object already destructed    return; -  +  if(c && (!ci || c!=ci)) // If we are switching or dropping connections +  c->close(); // force a close on the old socket    (c=ci)->socket->set_id(procmessage);    cancelsecret=0;    portal=0;