From b48d1ddd1e40351f1dd1c867f454675a87d5af50 Mon Sep 17 00:00:00 2001 From: Eduardo Alonso Date: Wed, 10 Oct 2018 17:21:01 +0400 Subject: [PATCH] habboclient: windows: Wait for the connection to take place * It takes a while for the connection to begin, and that's needed for G-WinMem.exe --- .../memory/habboclient/windows/WindowsHabboClient.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/protocol/memory/habboclient/windows/WindowsHabboClient.java b/src/main/protocol/memory/habboclient/windows/WindowsHabboClient.java index 6550663..9a23016 100644 --- a/src/main/protocol/memory/habboclient/windows/WindowsHabboClient.java +++ b/src/main/protocol/memory/habboclient/windows/WindowsHabboClient.java @@ -224,12 +224,13 @@ public class WindowsHabboClient extends HabboClient { System.out.println("Getting Win Possibilities"); List result = new ArrayList<>(); try { + Thread.sleep(3000); ArrayList possibleData = readPossibleBytes(); for (String possibleHexStr : possibleData) { result.add(DatatypeConverter.parseHexBinary(possibleHexStr)); } - } catch (IOException | URISyntaxException e) { + } catch (IOException | URISyntaxException | InterruptedException e) { e.printStackTrace(); } return result;