GeoIP dispose fix

This commit is contained in:
Lucas Nicodemus 2011-12-21 13:09:28 -07:00
parent 0cdafc0e81
commit 5d3f5eed90
2 changed files with 6 additions and 3 deletions

View file

@ -295,7 +295,10 @@ namespace TShockAPI
{
if (disposing)
{
Geo.Dispose();
if (Geo != null)
{
Geo.Dispose();
}
GameHooks.PostInitialize -= OnPostInit;
GameHooks.Update -= OnUpdate;
ServerHooks.Join -= OnJoin;