Moved hires conversion to right place

This commit is contained in:
Rick Falkvinge
2017-10-01 20:43:26 +02:00
parent 35167b5d77
commit 42f2142237
+10 -9
View File
@@ -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)
{