mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-22 20:55:52 +12:00
Cleanup substrings, fix more of em
This commit is contained in:
parent
a9a5ef65b0
commit
574596b4e0
6 changed files with 89 additions and 88 deletions
|
@ -438,10 +438,8 @@ namespace HISP.Server
|
|||
* this prevents the entire server from crashing
|
||||
* if theres an error in handling a particular packet.
|
||||
*/
|
||||
#if (!DEBUG)
|
||||
try
|
||||
{
|
||||
#endif
|
||||
if (!LoggedIn) // Must be either login or policy-file-request
|
||||
{
|
||||
switch (identifier)
|
||||
|
@ -529,14 +527,15 @@ namespace HISP.Server
|
|||
break;
|
||||
}
|
||||
}
|
||||
#if (!DEBUG)
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
Logger.ErrorPrint("Unhandled Exception: " + e.ToString() + "\n" + e.Message + "\n" + e.StackTrace);
|
||||
Kick("Unhandled Exception: " + e.ToString());
|
||||
}
|
||||
#if OS_DEBUG
|
||||
throw e;
|
||||
#endif
|
||||
Logger.ErrorPrint("Unhandled Exception: " + e.Message + "\n" + e.StackTrace);
|
||||
Kick("Unhandled Exception: " + e.Message + "\n" + e.StackTrace);
|
||||
}
|
||||
}
|
||||
|
||||
public void Kick(string Reason)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue