File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -1033,12 +1033,17 @@ void bar_manager_handle_system_will_sleep(struct bar_manager* bar_manager) {
1033
1033
}
1034
1034
1035
1035
void bar_manager_handle_system_woke (struct bar_manager * bar_manager ) {
1036
- usleep (100000 );
1037
- bar_manager -> sleeps = false;
1038
- bar_manager_display_changed (bar_manager );
1039
- bar_manager_custom_events_trigger (bar_manager ,
1040
- COMMAND_SUBSCRIBE_SYSTEM_WOKE ,
1041
- NULL );
1036
+
1037
+ dispatch_async (dispatch_get_global_queue (DISPATCH_QUEUE_PRIORITY_LOW , 0 ), ^{
1038
+ usleep (100000 );
1039
+ dispatch_async (dispatch_get_main_queue (), ^{
1040
+ bar_manager -> sleeps = false;
1041
+ bar_manager_display_changed (bar_manager );
1042
+ bar_manager_custom_events_trigger (bar_manager ,
1043
+ COMMAND_SUBSCRIBE_SYSTEM_WOKE ,
1044
+ NULL );
1045
+ });
1046
+ });
1042
1047
}
1043
1048
1044
1049
void bar_manager_handle_notification (struct bar_manager * bar_manager , struct notification * notification ) {
You can’t perform that action at this time.
0 commit comments