Bug 977372 - Remove main thread assert so CloseFileRunnable can be used on non-main threads. r=bent

This commit is contained in:
Dave Hylands 2014-03-05 20:18:06 -08:00
parent 9c9e49ec75
commit df5638354e

View File

@ -21,7 +21,6 @@ using mozilla::ipc::CloseFileRunnable;
CloseFileRunnable::CloseFileRunnable(const FileDescriptor& aFileDescriptor)
: mFileDescriptor(aFileDescriptor)
{
MOZ_ASSERT(NS_IsMainThread());
MOZ_ASSERT(aFileDescriptor.IsValid());
}
@ -41,8 +40,6 @@ NS_IMPL_ISUPPORTS1(CloseFileRunnable, nsIRunnable)
void
CloseFileRunnable::Dispatch()
{
MOZ_ASSERT(NS_IsMainThread());
nsCOMPtr<nsIEventTarget> eventTarget =
do_GetService(NS_STREAMTRANSPORTSERVICE_CONTRACTID);
NS_ENSURE_TRUE_VOID(eventTarget);