Fix so we actually get the NOTIFY.
authorSteinar H. Gunderson <sesse@samfundet.no>
Fri, 18 Feb 2005 18:00:30 +0000 (18:00 +0000)
committerSteinar H. Gunderson <sesse@samfundet.no>
Fri, 18 Feb 2005 18:00:30 +0000 (18:00 +0000)
bigscreen/ccbs_bigscreen.cpp

index bd8b37b..71bd966 100644 (file)
@@ -12,6 +12,7 @@ class ExitTrigger : pqxx::trigger {
 public:
        ExitTrigger(pqxx::connection_base &conn, const PGSTD::string &name)
                : pqxx::trigger(conn, name) {}
+       virtual ~ExitTrigger() throw () {}
        
        virtual void operator() (int pid)
        {
@@ -37,7 +38,7 @@ int main(int argc, char **argv)
                        std::fprintf(stderr, "%s\n", i["title"].c_str());
                }
                t.commit();
-
+               conn.get_notifs();
                sleep(1);
        } catch (const std::exception &e) {
                std::fprintf(stderr, "Exception: %s\n", e.what());