mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-27 04:35:34 +08:00
Rejoin transmission when server leaves
This commit is contained in:
@@ -276,6 +276,12 @@ void PeerConnection::ProcessSignal(const std::string &signal) {
|
||||
user_id_it->second->DestroyIceTransmission();
|
||||
ice_transmission_list_.erase(user_id_it);
|
||||
LOG_INFO("Terminate transmission to user [{}]", user_id);
|
||||
|
||||
if (std::string::npos != user_id.find("S-")) {
|
||||
LOG_INFO("Server leaves, try to rejoin transmission");
|
||||
|
||||
RequestTransmissionMemberList(transmission_id_);
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user