summaryrefslogtreecommitdiff
path: root/src/modules/extra
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2010-03-02 03:23:18 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2010-03-02 03:23:18 +0000
commit9b2cb52a12bf17d23417e689a1c07765d3bdaed5 (patch)
tree0622354f9be12fb836af47033d097ff60b7d989c /src/modules/extra
parenta018f26eddbc72fdbf87fe5ee89112a53311fff1 (diff)
Fix some more incorrect socket use
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12585 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/extra')
-rw-r--r--src/modules/extra/m_pgsql.cpp12
1 files changed, 1 insertions, 11 deletions
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)
{