Skip to content

Commit b1cc554

Browse files
committed
2 parents 33cacfc + b02aca8 commit b1cc554

File tree

6 files changed

+17
-13
lines changed

6 files changed

+17
-13
lines changed

.dockerignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.dockerignore
1+
.dockerignore
22
.env
33
.git
44
.gitignore

.filenesting.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
".iced",
1919
".config",
2020
".cs",
21-
".vb",
2221
".json"
2322
]
2423
}

.issuetracker

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212

1313
[issuetracker "Gitee-Commit"]
1414
regex = "[C|c]ommit:([^\\s]*)"
15-
url = "https://gitee.com/Longbow/BootstrapBlazor/commit/$1"
15+
url = "https://github.com/dotnetcore/BootstrapBlazor/commit/$1"
1616

1717
[issuetracker "Gitee-PR"]
1818
regex = "!([\\d]+)"
19-
url = "https://gitee.com/Longbow/BootstrapBlazor/pulls/$1"
19+
url = "https://github.com/dotnetcore/BootstrapBlazor/pulls/$1"

.tfignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@
189189
same "printed page" as the copyright notice for easier
190190
identification within third-party archives.
191191

192-
Copyright [Argo Zhang] (argo@163.com)
192+
Copyright [Argo Zhang] (argo@live.ca)
193193

194194
Licensed under the Apache License, Version 2.0 (the "License");
195195
you may not use this file except in compliance with the License.

src/BootstrapBlazor/Services/DefaultNetworkMonitorService.cs

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,22 @@ public async Task RegisterStateChangedCallback(IComponent component, Func<Networ
5858
await _semaphoreSlim.WaitAsync(3000);
5959
if (!_init)
6060
{
61-
_init = true;
61+
try
62+
{
63+
_init = true;
6264

63-
_networkModule ??= await _runtime.LoadModuleByName("net");
64-
await _networkModule.InvokeVoidAsync("init", new
65+
_networkModule ??= await _runtime.LoadModuleByName("net");
66+
await _networkModule.InvokeVoidAsync("init", new
67+
{
68+
Invoke = _interop,
69+
OnNetworkStateChangedCallback = nameof(TriggerNetworkStateChanged)
70+
});
71+
}
72+
finally
6573
{
66-
Invoke = _interop,
67-
OnNetworkStateChangedCallback = nameof(TriggerNetworkStateChanged)
68-
});
74+
_semaphoreSlim.Release();
75+
}
6976
}
70-
_semaphoreSlim.Release();
7177
}
7278
}
7379

0 commit comments

Comments
 (0)