From 9b2cb52a12bf17d23417e689a1c07765d3bdaed5 Mon Sep 17 00:00:00 2001 From: danieldg Date: Tue, 2 Mar 2010 03:23:18 +0000 Subject: Fix some more incorrect socket use git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12585 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/extra/m_pgsql.cpp | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'src/modules/extra') diff --git a/src/modules/extra/m_pgsql.cpp b/src/modules/extra/m_pgsql.cpp index 629193ea1..b1f6916d0 100644 --- a/src/modules/extra/m_pgsql.cpp +++ b/src/modules/extra/m_pgsql.cpp @@ -735,17 +735,7 @@ class SQLConn : public EventHandler void Close() { - if (!ServerInstance->SE->DelFd(this)) - { - if (sql && PQstatus(sql) == CONNECTION_BAD) - { - ServerInstance->SE->DelFd(this, true); - } - else - { - ServerInstance->Logs->Log("m_pgsql",DEBUG, "BUG: PQsocket cant be removed from socket engine!"); - } - } + ServerInstance->SE->DelFd(this); if(sql) { -- cgit v1.2.3