Branch: Tag:

2016-02-17

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

pgsql: Shortcut to close descriptors when in a destructed object.

1179:    }    break;    } +  if(!this) { // Already destructed +  ci->close(); // So close descriptors only +  return; +  }    PD("Closing database processloop %O\n",err); -  if(this) +     _delayederror=err;    for(;objectp(portal);portal=qportals->read())    if(objectp(portal)) {
1191:    }    if(!ci->close() && !terminating && _options.reconnect)    _connectfail(); -  else if(this) +  else    destruct(waitforauthready); -  if(this && err && !stringp(err)) +  if(err && !stringp(err))    throw(err);   }