From 3bd63ba3ea36c2a392ff2a93b94e0fa41b49bd54 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Fri, 17 May 2024 23:40:21 +0500 Subject: fix: connection closed in the wrong place --- src/stream.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/stream.cpp b/src/stream.cpp index 86d35cc..cfb3387 100644 --- a/src/stream.cpp +++ b/src/stream.cpp @@ -161,10 +161,10 @@ namespace bot::stream { for (const auto &msg : msgs) { this->irc_client.say(channel[1].as(), base + msg); } - - work.commit(); - conn.close(); } + + work.commit(); + conn.close(); } void StreamListenerClient::update_channel_ids() { pqxx::connection conn(GET_DATABASE_CONNECTION_URL(this->configuration)); -- cgit v1.2.3