Skip to content

Commit

Permalink
DEVOPS-10175 linux remove channel closes
Browse files Browse the repository at this point in the history
  • Loading branch information
Wadus16 committed Jul 1, 2024
1 parent dbfe2f8 commit 1ccc3a9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Connection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ void Connection::loop() {
std::unique_lock<std::mutex> lock(_mutex);
if (!cvBroken.wait_for(lock, std::chrono::seconds(timeout), [&] { return broken; })) {
broken = false;
channel()->close();
//channel()->close();
throw Biterp::Error("AMQP server timeout error");
}
broken = false;
Expand Down
6 changes: 3 additions & 3 deletions src/linux/ConnectionImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ void ConnectionImpl::openChannel(std::unique_ptr<AMQP::TcpChannel>& channel) {
}

void ConnectionImpl::closeChannel(std::unique_ptr<AMQP::TcpChannel>& channel) {
if (channel && channel->usable()) {
channel->close();
}
//if (channel && channel->usable()) {
// channel->close();
//}
channel.reset(nullptr);
}

Expand Down

0 comments on commit 1ccc3a9

Please sign in to comment.