File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/ServiceControl.RavenDB Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -198,13 +198,13 @@ public async Task Stop(CancellationToken cancellationToken)
198198 // until its GracefulShutdownTimeout is reached and then does a Process.Kill. Due to this behavior this can
199199 // be shorter or longer than the allowed stop duration.
200200 //
201- // With the Task.WhenAny 2 things can happen:
201+ // When Task.WhenAny is called, 2 things can happen:
202202 //
203203 // a. The Task.Delay gets cancelled first
204204 // b. The EmbeddedServer.Dispose completes first
205205 //
206206 // If the Task.Delay gets cancelled first this means Dispose is still running and
207- // then we try and kill the process
207+ // then we try and kill the process, if not disposed completed and we're done.
208208
209209 serverOptions ! . GracefulShutdownTimeout = TimeSpan . FromHours ( 1 ) ; // During Stop/Dispose we manually control this
210210
@@ -356,4 +356,4 @@ static long DirSize(DirectoryInfo d)
356356 static TimeSpan delayBetweenRestarts = TimeSpan . FromSeconds ( 60 ) ;
357357 static readonly ILog Logger = LogManager . GetLogger < EmbeddedDatabase > ( ) ;
358358 }
359- }
359+ }
You can’t perform that action at this time.
0 commit comments