diff options
author | om <om@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-12 15:32:51 +0000 |
---|---|---|
committer | om <om@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-12 15:32:51 +0000 |
commit | 992f5e2545c969634e309e6aee29b50ec3dcf1e1 (patch) | |
tree | 291dc2342b76f924f5af9da25d66f1f042c69b0b /src/modules/extra | |
parent | bc14912c0cce02f6cdd94352935d1ae123a5f9c0 (diff) |
Catch exceptions from SQLresolver
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4910 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/extra')
-rw-r--r-- | src/modules/extra/m_pgsql.cpp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/modules/extra/m_pgsql.cpp b/src/modules/extra/m_pgsql.cpp index c4bf1da99..0a8c1fd11 100644 --- a/src/modules/extra/m_pgsql.cpp +++ b/src/modules/extra/m_pgsql.cpp @@ -575,9 +575,16 @@ public: /* Conversion failed, assume it's a host */ SQLresolver* resolver; - resolver = new SQLresolver(this, ServerInstance, host); - - ServerInstance->AddResolver(resolver); + try + { + resolver = new SQLresolver(this, ServerInstance, host); + + ServerInstance->AddResolver(resolver); + } + catch(...) + { + ServerInstance->Log(DEBUG, "Couldn't make a SQLresolver..this connection is gonna diiiiiie...actually we just won't create it"); + } } else { |