]> git.sesse.net Git - ccbs/commitdiff
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 bd8b37b05ea87e1cd21ea5c8aaeeb3dfd24812a0..71bd966cc1aad8e61c331feaa313605db5713634 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());