If initialize failed, set instance to null

This commit is contained in:
Garry Newman 2017-06-26 14:40:14 +01:00
parent e5b6d99bef
commit d944c6c7ae
2 changed files with 2 additions and 0 deletions

View File

@ -74,6 +74,7 @@ public Client( uint appId )
{
native.Dispose();
native = null;
Instance = null;
return;
}

View File

@ -38,6 +38,7 @@ public Server( uint appId, ServerInit init )
{
native.Dispose();
native = null;
Instance = null;
return;
}