Must get client ID properly there

This commit is contained in:
Manevolent
2018-08-04 23:58:34 -04:00
parent 07ca284851
commit 0c2f4c0341
2 changed files with 5 additions and 2 deletions
@@ -781,7 +781,11 @@ public class LocalTeamspeakClientSocket
new CommandSingleParameter("clid", Integer.toString(clientId))
);
Iterable<Client> clients = executeCommand(command, x -> new Client(x.toMap())).get();
Iterable<Client> clients = executeCommand(command, x -> {
Map<String, String> map = x.toMap();
map.put("clid", Integer.toString(clientId));
return new Client(map);
}).get();
return clients.iterator().next();
}