pike.git/
lib/
modules/
Sql.pmod/
pgsql.pike
Branch:
Tag:
Non-build tags
All tags
No tags
2016-02-17
2016-02-17 22:38:58 by Stephen R. van den Berg <srb@cuci.nl>
10244160adc19b3837db9983994833b30db4b263 (
12
lines) (+
8
/-
4
)
[
Show
|
Annotate
]
Branch:
8.0
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); }