X-Git-Url: https://git.sesse.net/?p=ccbs;a=blobdiff_plain;f=bigscreen%2Fccbs_bigscreen.cpp;h=03a94962ddab87ff4c0fe0200ed8154bfe7649bb;hp=bd8b37b05ea87e1cd21ea5c8aaeeb3dfd24812a0;hb=a8c63728d0999cb78b6086e5fc2dc2e8c78b4659;hpb=5c5c824a38b02e166b5b012f17cf77dcb38d59d6 diff --git a/bigscreen/ccbs_bigscreen.cpp b/bigscreen/ccbs_bigscreen.cpp index bd8b37b..03a9496 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) { @@ -24,7 +25,7 @@ int main(int argc, char **argv) { GLWindow glw("CCBS bigscreen", 800, 600, 32, false, 16, -1); try { - pqxx::connection conn("dbname=ccbs host=sql.samfundet.no user=ccbs password=GeT|>>B_"); + pqxx::connection conn("dbname=ccbs host=altersex.samfundet.no user=ccbs password=GeT|>>B_"); ExitTrigger et(conn, "bs_tournament_changed"); sleep(1); @@ -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());