From 6fe5a1d79b55ede94276bb5c2d72c04f15faff42 Mon Sep 17 00:00:00 2001 From: peavey Date: Thu, 11 Jan 2007 04:49:22 +0000 Subject: More tidyup. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6297 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/extra/m_pgsql.cpp | 11 +++-------- 1 file 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) -- cgit v1.2.3