mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-09-18 20:02:42 +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