Skip to content

Commit a5119d7

Browse files
Fix comment
1 parent dee2cfe commit a5119d7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ServiceControl.RavenDB/EmbeddedDatabase.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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+
}

0 commit comments

Comments
 (0)