diff options
| author | ilotterytea <iltsu@alright.party> | 2024-05-17 23:40:21 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2024-05-17 23:40:21 +0500 |
| commit | 3bd63ba3ea36c2a392ff2a93b94e0fa41b49bd54 (patch) | |
| tree | 28575732cf93d6757df4d5ec353e0885459b779b /src/stream.cpp | |
| parent | d1e0d677e7135de3c17034638a7d697d8f0e7c2f (diff) | |
fix: connection closed in the wrong place
Diffstat (limited to 'src/stream.cpp')
| -rw-r--r-- | src/stream.cpp | 6 |
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)); |
