summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2007-01-11 04:49:22 +0000
committerpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2007-01-11 04:49:22 +0000
commit6fe5a1d79b55ede94276bb5c2d72c04f15faff42 (patch)
tree8930322480b018bfc0cec3e87f5dd35e111ce4ad /src/modules
parent300b27d0bb035c11b81c2e07541b5c194b1f9031 (diff)
More tidyup.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6297 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/extra/m_pgsql.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/modules/extra/m_pgsql.cpp b/src/modules/extra/m_pgsql.cpp
index fc383d4e9..c3fb1c9ad 100644
--- a/src/modules/extra/m_pgsql.cpp
+++ b/src/modules/extra/m_pgsql.cpp
@@ -937,27 +937,22 @@ class SQLConn : public EventHandler
}
void Close() {
- DoClose();
- }
-
- void DoClose()
- {
Instance->Log(DEBUG, "SQLConn::Close - socket: %d", this->fd);
if (!this->Instance->SE->DelFd(this))
{
if (sql && PQstatus(sql) == CONNECTION_BAD)
{
- Instance->Log(DEBUG, "PQsocket was already removed. Forcing removal from the socket engine!");
+ Instance->Log(DEBUG, "PQsocket was already removed. Forcing removal from socket engine!");
this->Instance->SE->DelFd(this, true);
}
else
{
- Instance->Log(DEBUG, "PQsocket cant be removed from the socket engine!");
+ Instance->Log(DEBUG, "PQsocket cant be removed from socket engine!");
}
}
else {
- Instance->Log(DEBUG, "PQsocket could not be removed!");
+ Instance->Log(DEBUG, "PQsocket cant be removed from socket engine!");
}
if(sql)