summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2024-05-17 23:40:21 +0500
committerilotterytea <iltsu@alright.party>2024-05-17 23:40:21 +0500
commit3bd63ba3ea36c2a392ff2a93b94e0fa41b49bd54 (patch)
tree28575732cf93d6757df4d5ec353e0885459b779b /src
parentd1e0d677e7135de3c17034638a7d697d8f0e7c2f (diff)
fix: connection closed in the wrong place
Diffstat (limited to 'src')
-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));