diff options
author | Attila Molnar <attilamolnar@hush.com> | 2015-04-15 23:45:12 +0200 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2015-04-15 23:45:12 +0200 |
commit | dad754237bf28b9cb7733f7607e128569897eb10 (patch) | |
tree | c1c4bc48209ba6ea0c67f2e825c82bb87e3d30ea /src/modules/extra | |
parent | 37de78450964b42741dffa51329251cdef28119f (diff) | |
parent | a42246b2f19d429a01fc901b7f49893764676499 (diff) |
Merge branch 'master+ehdispatch'
Diffstat (limited to 'src/modules/extra')
-rw-r--r-- | src/modules/extra/m_pgsql.cpp | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/src/modules/extra/m_pgsql.cpp b/src/modules/extra/m_pgsql.cpp index 1e73c0143..ff8c1174c 100644 --- a/src/modules/extra/m_pgsql.cpp +++ b/src/modules/extra/m_pgsql.cpp @@ -178,18 +178,19 @@ class SQLConn : public SQLProvider, public EventHandler } } - void HandleEvent(EventType et, int errornum) + void OnEventHandlerRead() CXX11_OVERRIDE { - switch (et) - { - case EVENT_READ: - case EVENT_WRITE: - DoEvent(); - break; + DoEvent(); + } - case EVENT_ERROR: - DelayReconnect(); - } + void OnEventHandlerWrite() CXX11_OVERRIDE + { + DoEvent(); + } + + void OnEventHandlerError(int errornum) CXX11_OVERRIDE + { + DelayReconnect(); } std::string GetDSN() |