Skip to content

Commit

Permalink
Fix crash
Browse files Browse the repository at this point in the history
  • Loading branch information
UgnineSirdis committed Oct 7, 2024
1 parent e77b22f commit 3d8e2d9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ydb/core/client/server/msgbus_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,11 @@ class TBusMessageContext::TImplMessageBus
}

TString GetPeerName() const override {
return TStringBuilder() << GetPeerAddrNetAddr();
TStringBuilder ret;
if (IsConnectionAlive()) {
ret << GetPeerAddrNetAddr();
}
return std::move(ret);
}

THolder<TMessageBusSessionIdentHolder::TImpl> CreateSessionIdentHolder() override;
Expand Down

0 comments on commit 3d8e2d9

Please sign in to comment.