diff options
Diffstat (limited to 'pc')
-rw-r--r-- | pc/peer_connection_factory.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pc/peer_connection_factory.cc b/pc/peer_connection_factory.cc index 2ff8dee4d0..b274d57235 100644 --- a/pc/peer_connection_factory.cc +++ b/pc/peer_connection_factory.cc @@ -10,6 +10,7 @@ #include "pc/peer_connection_factory.h" +#include <cstdio> #include <memory> #include <utility> #include <vector> @@ -107,6 +108,10 @@ PeerConnectionFactory::PeerConnectionFactory( wraps_current_thread_ = true; } } + signaling_thread_->AllowInvokesToThread(worker_thread_); + signaling_thread_->AllowInvokesToThread(network_thread_); + worker_thread_->AllowInvokesToThread(network_thread_); + network_thread_->DisallowAllInvokes(); } PeerConnectionFactory::~PeerConnectionFactory() { |