From afb4d90ad319e2fe26752693854984b0407ec67c Mon Sep 17 00:00:00 2001 From: Josh Matthews Date: Thu, 26 Nov 2015 11:03:38 -0500 Subject: [PATCH] Send a response to font load initiators even when a font is ignored. --- components/gfx/font_cache_task.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/components/gfx/font_cache_task.rs b/components/gfx/font_cache_task.rs index 58c8b0f18a2..7742ee5ab13 100644 --- a/components/gfx/font_cache_task.rs +++ b/components/gfx/font_cache_task.rs @@ -192,6 +192,7 @@ impl FontCache { } ResponseAction::ResponseComplete(Ok(_)) => { if !*response_valid.lock().unwrap() { + drop(result.send(())); return; } let mut bytes = bytes.lock().unwrap();