Bug 1210821 - Fix possible IPC cancellation bug (r=dvander)

This commit is contained in:
Bill McCloskey 2015-10-04 16:56:47 -07:00
parent 65c10472e9
commit 186bf03026

View File

@ -2009,7 +2009,8 @@ MessageChannel::CancelCurrentTransaction()
{
MonitorAutoLock lock(*mMonitor);
if (mCurrentTransaction &&
(DispatchingSyncMessagePriority() >= IPC::Message::PRIORITY_HIGH))
!DispatchingAsyncMessage() &&
DispatchingSyncMessagePriority() >= IPC::Message::PRIORITY_HIGH)
{
CancelCurrentTransactionInternal();
mLink->SendMessage(new CancelMessage());