From 3f0aeb98fde7084a711b8cc436642917db96f2f5 Mon Sep 17 00:00:00 2001 From: Ryan Pavlik Date: Mon, 2 May 2011 15:53:53 -0500 Subject: [PATCH] disconnect fully if we lose connection. --- src/events.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/events.c b/src/events.c index 324a832..1889ea4 100644 --- a/src/events.c +++ b/src/events.c @@ -144,6 +144,7 @@ int wiiuse_poll(struct wiimote_t** wm, int wiimotes) { /* this can happen if the bluetooth dongle is disconnected */ WIIUSE_ERROR("Bluetooth appears to be disconnected. Wiimote unid %i will be disconnected.", wm[i]->unid); wiiuse_disconnect(wm[i]); + wiiuse_disconnected(wm[i]); wm[i]->event = WIIUSE_UNEXPECTED_DISCONNECT; }