mirror of
https://github.com/fergalmoran/DnsServer.git
synced 2026-02-11 10:23:59 +00:00
LogManager: fixed issue that would set queue cancellation token even when logging is stopped causing the logging thread to block when enabling again.
This commit is contained in:
@@ -247,7 +247,8 @@ namespace DnsServerCore
|
||||
{
|
||||
try
|
||||
{
|
||||
_queueCancellationTokenSource.Cancel();
|
||||
if (_logOut != null)
|
||||
_queueCancellationTokenSource.Cancel();
|
||||
|
||||
lock (_logFileLock)
|
||||
{
|
||||
@@ -560,7 +561,8 @@ namespace DnsServerCore
|
||||
{
|
||||
try
|
||||
{
|
||||
_queueCancellationTokenSource.Cancel();
|
||||
if (_logOut != null)
|
||||
_queueCancellationTokenSource.Cancel();
|
||||
|
||||
lock (_logFileLock)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user