mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-22 02:09:28 +00:00
Bug 977372 - Remove main thread assert so CloseFileRunnable can be used on non-main threads. r=bent
This commit is contained in:
parent
9c9e49ec75
commit
df5638354e
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user