public function stop() {
        if ($this->watcher === null) {
            return;
        }

        Loop::cancel($this->watcher);
        $this->watcher = null;
    }
public function stop() {
        if ($this->watcher === null) {
            return;
        }

        Loop::cancel($this->watcher);
        $this->watcher = null;
    }
public function stop ( ) { if ( $ this -> watcher === null ) { return ; } Loop :: cancel ( $ this -> watcher ) ; $ this -> watcher = null ; }
Stop the detector.
Stop the detector .