From fccc9fe8c05f29f29c4b6743f48f60d5bf0968cb Mon Sep 17 00:00:00 2001 From: Gravit Date: Thu, 28 Nov 2019 23:15:28 +0700 Subject: [PATCH] =?UTF-8?q?[FIX](=D0=97=D0=B0=D0=B1=D1=8B=D1=82=D1=8B?= =?UTF-8?q?=D0=B9=20=D0=BA=D0=BE=D0=BC=D0=BC=D0=B8=D1=82)=20=D0=9D=D0=B5?= =?UTF-8?q?=20=D1=83=D0=BA=D0=B0=D0=B7=D1=8B=D0=B2=D0=B0=D0=BB=D1=81=D1=8F?= =?UTF-8?q?=20requestUUID=20=D0=B2=20UpdateResponse?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../launchserver/socket/response/update/UpdateResponse.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/LaunchServer/src/main/java/pro/gravit/launchserver/socket/response/update/UpdateResponse.java b/LaunchServer/src/main/java/pro/gravit/launchserver/socket/response/update/UpdateResponse.java index bb3156d8..3765dfa3 100644 --- a/LaunchServer/src/main/java/pro/gravit/launchserver/socket/response/update/UpdateResponse.java +++ b/LaunchServer/src/main/java/pro/gravit/launchserver/socket/response/update/UpdateResponse.java @@ -28,14 +28,14 @@ public void execute(ChannelHandlerContext ctx, Client client) { for (ClientProfile p : server.getProfiles()) { if (!client.profile.getTitle().equals(p.getTitle())) continue; if (!p.isWhitelistContains(client.username)) { - service.sendObject(ctx, new ErrorRequestEvent("You don't download this folder")); + sendError("You don't download this folder"); return; } } } HashedDir dir = server.updatesDirMap.get(dirName); if (dir == null) { - service.sendObject(ctx, new ErrorRequestEvent(String.format("Directory %s not found", dirName))); + sendError(String.format("Directory %s not found", dirName)); return; } String url = server.config.netty.downloadURL.replace("%dirname%", IOHelper.urlEncode(dirName)); @@ -45,6 +45,6 @@ public void execute(ChannelHandlerContext ctx, Client client) { url = bind.url; zip = bind.zip; } - service.sendObject(ctx, new UpdateRequestEvent(dir, url, zip)); + sendResult(new UpdateRequestEvent(dir, url, zip)); } }