diff options
| author | 2010-03-02 03:23:18 +0000 | |
|---|---|---|
| committer | 2010-08-03 17:32:38 -0400 | |
| commit | 5401cc3c46ec9beacef2640ea10291bfa0d019cb (patch) | |
| tree | 58c3b3e9c17e68b3db5235fdac0c51ac8426b060 /src/modules/extra/m_pgsql.cpp | |
| parent | DelFd should not fail, it will leave a bad dangling pointer in that case (diff) | |
Fix some more incorrect socket use
Diffstat (limited to 'src/modules/extra/m_pgsql.cpp')
| -rw-r--r-- | src/modules/extra/m_pgsql.cpp | 12 |
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) { |
