Skip to content

Commit 5807bf4

Browse files
committed
refactor: 增加超时设置
1 parent 9307cdf commit 5807bf4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BootstrapBlazor/Services/DefaultNetworkMonitorService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public async Task RegisterStateChangedCallback(IComponent component, Func<Networ
5555

5656
if (!_init)
5757
{
58-
await _semaphoreSlim.WaitAsync();
58+
await _semaphoreSlim.WaitAsync(3000);
5959
if (!_init)
6060
{
6161
_init = true;

0 commit comments

Comments
 (0)