From: Steinar H. Gunderson Date: Fri, 18 Feb 2005 18:00:30 +0000 (+0000) Subject: Fix so we actually get the NOTIFY. X-Git-Url: https://git.sesse.net/?p=ccbs;a=commitdiff_plain;h=1640d1e1125f43a22770796b24895d18d945892f;ds=sidebyside Fix so we actually get the NOTIFY. --- diff --git a/bigscreen/ccbs_bigscreen.cpp b/bigscreen/ccbs_bigscreen.cpp index bd8b37b..71bd966 100644 --- a/bigscreen/ccbs_bigscreen.cpp +++ b/bigscreen/ccbs_bigscreen.cpp @@ -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());