Backed out changeset 554bfe767519 (bug 913847) for leaking on a CLOSED TREE
This commit is contained in:
@@ -7,7 +7,6 @@
|
||||
|
||||
#include "nsISupports.h"
|
||||
#include "mozilla/net/ChannelEventQueue.h"
|
||||
#include "nsThreadUtils.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace net {
|
||||
@@ -42,21 +41,6 @@ ChannelEventQueue::FlushQueue()
|
||||
mFlushing = false;
|
||||
}
|
||||
|
||||
void
|
||||
ChannelEventQueue::Resume()
|
||||
{
|
||||
// Resuming w/o suspend: error in debug mode, ignore in build
|
||||
MOZ_ASSERT(mSuspendCount > 0);
|
||||
if (mSuspendCount <= 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!--mSuspendCount) {
|
||||
nsRefPtr<nsRunnableMethod<ChannelEventQueue> > event =
|
||||
NS_NewRunnableMethod(this, &ChannelEventQueue::CompleteResume);
|
||||
NS_DispatchToCurrentThread(event);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user