Skip to content
Snippets Groups Projects
Commit 7fb39389 authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Cleanup clock sync on discon

parent 5b358414
No related branches found
No related tags found
1 merge request!98Work towards #123 adaptive bitrate
Pipeline #13016 passed
......@@ -675,6 +675,8 @@ Peer::~Peer() {
_badClose(false);
LOG(INFO) << "Deleting peer object";
if (status_ == kReconnecting) LOG(FATAL) << "Deleting reconnecting object";
delete disp_;
}
......@@ -185,7 +185,6 @@ void Streamer::_addClient(const string &source, int N, int rate, const ftl::UUID
} catch (...) {
// Reset time peer and remove timer
time_peer_ = ftl::UUID(0);
LOG(INFO) << "Clock job failure..";
return false;
}
......@@ -268,10 +267,10 @@ void Streamer::_cleanUp() {
// Client request completed so remove from list
if ((*i).txcount >= (*i).txmax) {
// If peer was clock sync master, the remove that...
/*if ((*i).peerid == time_peer_) {
if ((*i).peerid == time_peer_) {
timer_job_.cancel();
time_peer_ = ftl::UUID(0);
}*/
}
LOG(INFO) << "Remove client: " << (*i).uri;
i = src->clients.erase(i);
--src->clientCount;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment