From 42f21422377da7c56595023af473e758a1a7c3a8 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Sun, 1 Oct 2017 20:43:26 +0200 Subject: [PATCH] Moved hires conversion to right place --- FrontSocket/FrontendServices.cs | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/FrontSocket/FrontendServices.cs b/FrontSocket/FrontendServices.cs index 6a9a4ea2..b8b972a4 100644 --- a/FrontSocket/FrontendServices.cs +++ b/FrontSocket/FrontendServices.cs @@ -303,17 +303,18 @@ namespace Swarmops.Frontend.Socket "(BackendConvertedFile) " + pageCounter.ToString(CultureInfo.InvariantCulture), fileLengthLastPage, guid, null, person); + // Finally, ask the backend to do the high-res conversions, but now we have the basic, fast ones + + JObject backendRequest = new JObject(); + backendRequest["BackendRequest"] = "ConvertPdfHires"; + backendRequest["DocumentId"] = lastDocument.Identity; + FrontendLoop.SendMessageUpstream(backendRequest); + + backendRequest["MessageType"] = "Echo"; + Sessions.Broadcast(backendRequest.ToString()); + } - // Finally, ask the backend to do the high-res conversions, but now we have the basic, fast ones - - JObject backendRequest = new JObject(); - backendRequest["BackendRequest"] = "ConvertPdfHires"; - backendRequest["DocumentId"] = lastDocument.Identity; - FrontendLoop.SendMessageUpstream(backendRequest); - - backendRequest["MessageType"] = "Echo"; - Sessions.Broadcast(backendRequest.ToString()); } catch (Exception e) {