From f2f529fb3449bf43c251e4698c402430d4b91b9b Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 4 Oct 2014 22:56:48 +0200 Subject: [PATCH] (btpad.c) Small change --- apple/iOS/bluetooth/btpad.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apple/iOS/bluetooth/btpad.c b/apple/iOS/bluetooth/btpad.c index 377ed72108..6e655a5f86 100644 --- a/apple/iOS/bluetooth/btpad.c +++ b/apple/iOS/bluetooth/btpad.c @@ -117,6 +117,9 @@ static void btpad_close_all_connections(void) int i; for (i = 0; i < MAX_PLAYERS; i ++) btpad_close_connection(&g_connections[i]); + /* TODO/FIXME - create platform-agnostic solution for this + * and figure out why/if this is needed. */ + CFRunLoopStop(CFRunLoopGetCurrent()); } void btpad_packet_handler(uint8_t packet_type, @@ -166,7 +169,6 @@ void btpad_packet_handler(uint8_t packet_type, case HCI_STATE_HALTING: btpad_close_all_connections(); - CFRunLoopStop(CFRunLoopGetCurrent()); break; } }