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