mirror of
https://github.com/GravitLauncher/Launcher
synced 2025-04-14 20:21:45 +03:00
SocketHookManager fix
This commit is contained in:
parent
4d7234512c
commit
cf5867c131
1 changed files with 12 additions and 11 deletions
|
@ -117,18 +117,19 @@ public void run() {
|
||||||
context.type = handshake.type;
|
context.type = handshake.type;
|
||||||
|
|
||||||
// Start response
|
// Start response
|
||||||
socketHookManager.preHook(context);
|
if(socketHookManager.preHook(context))
|
||||||
try {
|
{
|
||||||
respond(handshake.type, input, output, handshake.session, context.ip);
|
try {
|
||||||
socketHookManager.postHook(context);
|
respond(handshake.type, input, output, handshake.session, context.ip);
|
||||||
} catch (RequestException e) {
|
socketHookManager.postHook(context);
|
||||||
if(server.socketHookManager.errorHook(context,e))
|
} catch (RequestException e) {
|
||||||
{
|
if(server.socketHookManager.errorHook(context,e))
|
||||||
LogHelper.subDebug(String.format("#%d Request error: %s", handshake.session, e.getMessage()));
|
{
|
||||||
if(e.getMessage() == null) LogHelper.error(e);
|
LogHelper.subDebug(String.format("#%d Request error: %s", handshake.session, e.getMessage()));
|
||||||
output.writeString(e.getMessage(), 0);
|
if(e.getMessage() == null) LogHelper.error(e);
|
||||||
|
output.writeString(e.getMessage(), 0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
savedError = e;
|
savedError = e;
|
||||||
|
|
Loading…
Reference in a new issue