2
0
mirror of https://github.com/proxiodev/RedisBungee.git synced 2024-11-22 20:28:00 +00:00

DAE read Effective Java

This commit is contained in:
vemacs 2014-01-20 08:16:30 -07:00
parent d6afec5f47
commit cfd1c20ad7

View File

@ -212,7 +212,7 @@ public final class RedisBungee extends Plugin implements Listener {
getProxy().getPluginManager().registerListener(this, this);
api = new RedisBungeeAPI(this);
psl = new PubSubListener();
psl.start();
new Thread(psl, "RedisBungee PubSub Listener").start();
}
}
@ -443,13 +443,11 @@ public final class RedisBungee extends Plugin implements Listener {
rsc.hdel("player:" + player, "ip");
}
private class PubSubListener extends Thread {
private class PubSubListener implements Runnable {
private Jedis rsc;
private JedisPubSubHandler jpsh;
private PubSubListener() {
super("RedisBungee PubSub Listener");
}
private PubSubListener() {}
@Override
public void run() {