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
This commit is contained in:
Eduardo Alonso 2018-10-10 17:21:01 +04:00
parent 5f35430768
commit b48d1ddd1e

View File

@ -224,12 +224,13 @@ public class WindowsHabboClient extends HabboClient {
System.out.println("Getting Win Possibilities"); System.out.println("Getting Win Possibilities");
List<byte[]> result = new ArrayList<>(); List<byte[]> result = new ArrayList<>();
try { try {
Thread.sleep(3000);
ArrayList<String> possibleData = readPossibleBytes(); ArrayList<String> possibleData = readPossibleBytes();
for (String possibleHexStr : possibleData) { for (String possibleHexStr : possibleData) {
result.add(DatatypeConverter.parseHexBinary(possibleHexStr)); result.add(DatatypeConverter.parseHexBinary(possibleHexStr));
} }
} catch (IOException | URISyntaxException e) { } catch (IOException | URISyntaxException | InterruptedException e) {
e.printStackTrace(); e.printStackTrace();
} }
return result; return result;