]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
More tidyup.
authorpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>
Thu, 11 Jan 2007 04:49:22 +0000 (04:49 +0000)
committerpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>
Thu, 11 Jan 2007 04:49:22 +0000 (04:49 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6297 e03df62e-2008-0410-955e-edbf42e46eb7

src/modules/extra/m_pgsql.cpp

index fc383d4e956dde4979cf02f017272a4d7bc0129e..c3fb1c9ad539306e50e1737d495a791b65900284 100644 (file)
@@ -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)