File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
src/Smdn.Net.MuninNode/Smdn.Net.MuninNode Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -151,13 +151,15 @@ public async ValueTask AcceptAsync(
151
151
CancellationToken cancellationToken
152
152
)
153
153
{
154
+ Logger ? . LogInformation ( "starting to accept" ) ;
155
+
154
156
try {
155
157
for ( ; ; ) {
156
158
if ( cancellationToken . IsCancellationRequested ) {
157
159
if ( throwIfCancellationRequested )
158
160
cancellationToken . ThrowIfCancellationRequested ( ) ;
159
161
else
160
- return ;
162
+ break ;
161
163
}
162
164
163
165
await AcceptSingleSessionAsync ( cancellationToken ) . ConfigureAwait ( false ) ;
@@ -166,9 +168,9 @@ CancellationToken cancellationToken
166
168
catch ( OperationCanceledException ex ) {
167
169
if ( throwIfCancellationRequested || ex . CancellationToken != cancellationToken )
168
170
throw ;
169
-
170
- return ;
171
171
}
172
+
173
+ Logger ? . LogInformation ( "stopped to accept" ) ;
172
174
}
173
175
174
176
/// <summary>
You can’t perform that action at this time.
0 commit comments