Backed out changeset 554bfe767519 (bug 913847) for leaking on a CLOSED TREE

This commit is contained in:
Wes Kocher
2013-09-18 17:21:02 -07:00
parent a3f9a4d39e
commit df60e63207
41 changed files with 73 additions and 76 deletions

View File

@@ -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);
}
}
}
}