diff options
Diffstat (limited to 'mojo/edk/system/data_pipe_producer_dispatcher.cc')
-rw-r--r-- | mojo/edk/system/data_pipe_producer_dispatcher.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/mojo/edk/system/data_pipe_producer_dispatcher.cc b/mojo/edk/system/data_pipe_producer_dispatcher.cc index 9f6a72e..d8d8abf 100644 --- a/mojo/edk/system/data_pipe_producer_dispatcher.cc +++ b/mojo/edk/system/data_pipe_producer_dispatcher.cc @@ -473,9 +473,8 @@ void DataPipeProducerDispatcher::NotifyWrite(uint32_t num_bytes) { } void DataPipeProducerDispatcher::OnPortStatusChanged() { - // This has to be outside |lock_| because the watch callback can call data - // pipe functions which then try to acquire |lock_|. - RequestContext request_context; + DCHECK(RequestContext::current()); + base::AutoLock lock(lock_); // We stop observing the control port as soon it's transferred, but this can |