From: peavey Date: Thu, 11 Jan 2007 04:49:22 +0000 (+0000) Subject: More tidyup. X-Git-Tag: v2.0.23~6089 X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=6fe5a1d79b55ede94276bb5c2d72c04f15faff42;p=user%2Fhenk%2Fcode%2Finspircd.git More tidyup. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6297 e03df62e-2008-0410-955e-edbf42e46eb7 --- 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)