summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/stream.cpp6
1 files changed, 3 insertions, 3 deletions
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<std::string>(), base + msg);
}
-
- work.commit();
- conn.close();
}
+
+ work.commit();
+ conn.close();
}
void StreamListenerClient::update_channel_ids() {
pqxx::connection conn(GET_DATABASE_CONNECTION_URL(this->configuration));