From 95a3a75fd47f52488b217e11686c5c550c66c00c Mon Sep 17 00:00:00 2001 From: Joshua Granick Date: Sat, 11 Feb 2017 11:00:01 -0800 Subject: [PATCH] Native HTTPRequest timeout should apply only to connect phase (fix #916) --- lime/_backend/native/NativeHTTPRequest.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lime/_backend/native/NativeHTTPRequest.hx b/lime/_backend/native/NativeHTTPRequest.hx index 950674e91..92e560090 100644 --- a/lime/_backend/native/NativeHTTPRequest.hx +++ b/lime/_backend/native/NativeHTTPRequest.hx @@ -279,7 +279,7 @@ class NativeHTTPRequest { Timer.delay (function () { - if (!worker.completed) { + if (bytesLoaded == 0 && bytesTotal == 0 && !worker.completed) { worker.cancel (); cancel ();