mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-23 15:20:52 +01:00
32 lines
741 B
Java
32 lines
741 B
Java
package com.eu.habbo.threading;
|
|
|
|
import com.eu.habbo.Emulator;
|
|
|
|
import java.io.IOException;
|
|
import java.util.concurrent.ScheduledThreadPoolExecutor;
|
|
import java.util.concurrent.ThreadFactory;
|
|
|
|
public class HabboExecutorService extends ScheduledThreadPoolExecutor
|
|
{
|
|
public HabboExecutorService(int corePoolSize, ThreadFactory threadFactory)
|
|
{
|
|
super(corePoolSize, threadFactory);
|
|
}
|
|
|
|
@Override
|
|
protected void afterExecute(Runnable r, Throwable t)
|
|
{
|
|
super.afterExecute(r, t);
|
|
|
|
if (t != null && !(t instanceof IOException))
|
|
{
|
|
try
|
|
{
|
|
Emulator.getLogging().logErrorLine(t);
|
|
}
|
|
catch (Exception e)
|
|
{}
|
|
}
|
|
}
|
|
}
|