Skip to content

Commit 33d49e1

Browse files
committed
Better comment in Connection::sendCancel()
1 parent b405ad6 commit 33d49e1

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/Client/Connection.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1327,11 +1327,10 @@ Packet Connection::receivePacket()
13271327
{
13281328
try
13291329
{
1330-
/// If we already disconnected.
1330+
/// We are trying to send something to already disconnected connection,
1331+
/// this means that we continue using Connection after exception.
13311332
if (!in)
1332-
{
13331333
throw Exception(ErrorCodes::LOGICAL_ERROR, "Connection to {} is terminated", getDescription());
1334-
}
13351334

13361335
Packet res;
13371336

0 commit comments

Comments
 (0)