add missing default case of `SDCallbackQueue` sync/async function

This commit is contained in:
Adam 2024-02-26 19:01:52 +08:00
parent bc23f12ecb
commit a8c61e21f4
1 changed files with 6 additions and 0 deletions

View File

@ -94,6 +94,9 @@ static void SDSafeExecute(SDCallbackQueue *callbackQueue, dispatch_block_t _Nonn
case SDCallbackPolicyInvoke:
block();
break;
default:
SDSafeExecute(self, block, NO);
break;
}
}
@ -108,6 +111,9 @@ static void SDSafeExecute(SDCallbackQueue *callbackQueue, dispatch_block_t _Nonn
case SDCallbackPolicyInvoke:
block();
break;
default:
SDSafeExecute(self, block, YES);
break;
}
}