fix(core): Removes disposable netstates. (#467)

- [X] Removes IDisposable from NetState
- [X] Swaps Disconnect and Dispose methods
This commit is contained in:
Kamron Batman 2021-02-05 14:33:35 -08:00 committed by GitHub
parent 079eeb1b96
commit 67625ad249
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
49 changed files with 204 additions and 210 deletions

View file

@ -2365,7 +2365,7 @@ namespace Server.Gumps
if (!hasAccess)
{
ns.Dispose();
ns.Disconnect();
++count;
}
}
@ -3736,7 +3736,7 @@ namespace Server.Gumps
"kicking",
CommandLogging.Format(m)
);
ns.Dispose();
ns.Disconnect();
notice = "They have been kicked.";
}
else
@ -3762,7 +3762,7 @@ namespace Server.Gumps
var ns = m.NetState;
ns?.Dispose();
ns?.Disconnect();
notice = "They have been banned.";
}