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:
Binary file not shown.
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user