mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-08-04 18:22:27 +08:00
Do not crash host on Dispose
This commit is contained in:
@ -105,7 +105,8 @@ namespace Ocelot.Configuration.Repository
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
_timer.Dispose();
|
||||
_timer?.Dispose();
|
||||
_timer = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user