aboutsummaryrefslogtreecommitdiff
path: root/src/modules/extra/m_pgsql.cpp
diff options
context:
space:
mode:
authorGravatar danieldg2010-03-02 03:23:18 +0000
committerGravatar danieldg2010-03-02 03:23:18 +0000
commit9b2cb52a12bf17d23417e689a1c07765d3bdaed5 (patch)
tree0622354f9be12fb836af47033d097ff60b7d989c /src/modules/extra/m_pgsql.cpp
parentDelFd should not fail, it will leave a bad dangling pointer in that case (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/m_pgsql.cpp')
-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)
{