mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-25 22:05:09 +00:00
format proxy code, allow to change swf on the fly
This commit is contained in:
@@ -3,39 +3,32 @@ package com.jpexs.proxy;
|
||||
import java.util.Enumeration;
|
||||
import java.util.Vector;
|
||||
|
||||
class Janitor implements Runnable
|
||||
{
|
||||
class Janitor implements Runnable {
|
||||
|
||||
private Vector cleanable = new Vector();
|
||||
|
||||
public void add(Cleanable c)
|
||||
{
|
||||
cleanable.addElement(c);
|
||||
|
||||
public void add(Cleanable c) {
|
||||
cleanable.addElement(c);
|
||||
}
|
||||
|
||||
public void run()
|
||||
{
|
||||
Thread.currentThread().setName("Janitor");
|
||||
|
||||
for (;;)
|
||||
{
|
||||
try
|
||||
{
|
||||
Thread.sleep(30 * 1000); /* 30 seconds */
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
for (Enumeration e = cleanable.elements();
|
||||
e.hasMoreElements(); )
|
||||
{
|
||||
((Cleanable)e.nextElement()).clean();
|
||||
}
|
||||
public void run() {
|
||||
Thread.currentThread().setName("Janitor");
|
||||
|
||||
Http.clean();
|
||||
for (;;) {
|
||||
try {
|
||||
Thread.sleep(30 * 1000); /* 30 seconds */
|
||||
|
||||
|
||||
}
|
||||
} catch (Exception e) {
|
||||
|
||||
}
|
||||
|
||||
for (Enumeration e = cleanable.elements();
|
||||
e.hasMoreElements();) {
|
||||
((Cleanable) e.nextElement()).clean();
|
||||
}
|
||||
|
||||
Http.clean();
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user