Exemple #1
0
 protected void reconnect() {
   if (monitorThread != null) {
     // let's end the old thread
     monitorThread.interrupt();
     monitorThread = null;
   }
   // create a new thread for listening to the FritzBox
   monitorThread = new MonitorThread(this.eventPublisher, this.providers);
   monitorThread.start();
 }
Exemple #2
0
 public void deactivate() {
   if (monitorThread != null) {
     monitorThread.interrupt();
   }
   monitorThread = null;
 }