SocketHookManager fix

This commit is contained in:
Gravit 2018-12-29 17:20:51 +07:00
parent 4d7234512c
commit cf5867c131
No known key found for this signature in database
GPG key ID: 061981E1E85D3216

View file

@ -117,7 +117,8 @@ public void run() {
context.type = handshake.type;
// Start response
socketHookManager.preHook(context);
if(socketHookManager.preHook(context))
{
try {
respond(handshake.type, input, output, handshake.session, context.ip);
socketHookManager.postHook(context);
@ -128,7 +129,7 @@ public void run() {
if(e.getMessage() == null) LogHelper.error(e);
output.writeString(e.getMessage(), 0);
}
}
}
} catch (Exception e) {
savedError = e;