fix for disconnection of several wiimotes

git-svn-id: http://wiiusej.googlecode.com/svn/trunk@191 ae48ae66-6a45-0410-b38e-211266189506
This commit is contained in:
guilhem.duche
2008-09-16 22:05:05 +00:00
parent 3bb0b50c35
commit 2fc1fe672a
2 changed files with 2 additions and 2 deletions

Binary file not shown.

View File

@@ -52,7 +52,7 @@ public class WiiUseApiManager extends Thread {
public static int WIIUSE_STACK_MS = 1;
public static int WIIUSE_STACK_BLUESOLEIL = 2;
private static WiiUseApiManager getInstance() {
public static WiiUseApiManager getInstance() {
return instance;
}
@@ -211,7 +211,7 @@ public class WiiUseApiManager extends Thread {
int index = 0;
boolean found = false;
while (index < wiimotes.length && !found) {
if (wiimotes[index].getId() == id) {// we have a wiimote with this
if (wiimotes[index]!=null && wiimotes[index].getId() == id) {// we have a wiimote with this
// id
// remove the wiimote
removeWiiUseApiListener(wiimotes[index]);