add comment

This commit is contained in:
yggverse 2024-11-30 05:26:14 +02:00
parent c779ca3788
commit ed68c22010

View file

@ -61,6 +61,7 @@ impl Connection {
} }
} }
if !self.socket_connection.is_closed() { if !self.socket_connection.is_closed() {
// @TODO duplicated condition?
if let Err(e) = self.socket_connection.close(self.cancellable.as_ref()) { if let Err(e) = self.socket_connection.close(self.cancellable.as_ref()) {
return Err(Error::SocketConnection(e)); return Err(Error::SocketConnection(e));
} }