mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-01 00:28:18 +00:00
corefoundation: fix return type for btstack_run_loop_corefoundation_remove_timer
This commit is contained in:
parent
be05aae39c
commit
7c37eaea3a
@ -184,7 +184,7 @@ static void btstack_run_loop_corefoundation_add_timer(btstack_timer_source_t * t
|
||||
CFRunLoopAddTimer(CFRunLoopGetCurrent(), timerRef, kCFRunLoopCommonModes);
|
||||
}
|
||||
|
||||
static int btstack_run_loop_corefoundation_remove_timer(btstack_timer_source_t * ts){
|
||||
static bool btstack_run_loop_corefoundation_remove_timer(btstack_timer_source_t * ts){
|
||||
// printf("btstack_run_loop_corefoundation_remove_timer %x -> %x\n", (int) ts, (int) ts->item.next);
|
||||
if (ts->item.next != NULL) {
|
||||
CFRunLoopTimerInvalidate((CFRunLoopTimerRef) ts->item.next); // also removes timer from run loops + releases it
|
||||
|
Loading…
Reference in New Issue
Block a user