Fixed web hangup
This commit is contained in:
parent
702dd87c41
commit
e439d4bc39
@ -457,8 +457,11 @@ void WebClient::handleMessage(const std::string &message) {
|
||||
unique_lock voice_bridge_lock(this->voice_bridge_lock);
|
||||
if(this->voice_bridge) {
|
||||
logError(this->server->getServerId(), "[{}] Tried to register a WebRTC channel twice!", CLIENT_STR_LOG_PREFIX_(this));
|
||||
//return;
|
||||
this->voice_bridge = nullptr;
|
||||
|
||||
std::thread([&, vb_ptr = std::move(this->voice_bridge), lock = this->ref()]() mutable {
|
||||
vb_ptr = nullptr;
|
||||
lock = nullptr;
|
||||
}).detach();
|
||||
}
|
||||
//TODO test if bridge already exists!
|
||||
this->voice_bridge = make_unique<web::VoiceBridge>(dynamic_pointer_cast<WebClient>(_this.lock())); //FIXME Add config
|
||||
|
Loading…
Reference in New Issue
Block a user