Esempio n. 1
0
 @Override
 public void run() {
   keepRunning.set(true);
   while (keepRunning.get()) {
     try {
       if (ips.available() > 0) {
         jsonRpcServer.handle(ips, ops);
       }
     } catch (Exception e) {
       e.printStackTrace();
       return;
     }
     synchronized (startLock) {
       startLock.notify();
     }
   }
 }