Fix issue with disconnected flag
Prior to this commit, the disconnected flag for inbound connections
would be switched to false, regardless of the success or failure of the
heartbeat send. This sets the flag to false, only if the send succeeds.
@@ -1091,8 +1091,9 @@ fn send_heartbeats<T: MatrixLifeCycle, U: MatrixSender>(
endpoint: endpoint.clone(),
});
}
+ } else {
+ *disconnected = false;
}
- *.disconnected = false;
}
}
}
