code: void removeNetworkReachabilityListener(NetworkReachabilityListener listener) {
          synchronized (listeners) {
              listeners.remove(listener);
              if (listeners.size() == 0) { stopListening(); }
          }
      }
docs: Remove Network Reachability Listener