Do not crash host on Dispose

This commit is contained in:
Jonathan Mezach 2019-12-12 08:12:10 +01:00
parent 41519b1e56
commit fd74ea280b

View File

@ -105,7 +105,8 @@ namespace Ocelot.Configuration.Repository
public void Dispose() public void Dispose()
{ {
_timer.Dispose(); _timer?.Dispose();
_timer = null;
} }
} }
} }