bcv-vf/src/main/java/the/bytecode/club/bytecodeviewer/util/PingBack.java

26 lines
533 B
Java
Raw Normal View History

2021-07-06 23:53:37 +00:00
package the.bytecode.club.bytecodeviewer.util;
import me.konloch.kontainer.io.HTTPRequest;
import the.bytecode.club.bytecodeviewer.Configuration;
import java.net.URL;
/**
* Pings back to bytecodeviewer.com to be added into the total running statistics
*
* @author Konloch
* @since May 1, 2015
*/
public class PingBack implements Runnable
{
@Override
public void run()
{
try {
new HTTPRequest(new URL("https://bytecodeviewer.com/add.php")).read();
} catch (Exception e) {
Configuration.pingback = false;
}
}
}