function stop() {
        if(!$this->sockets) {
            if($this->timer) {
                $this->loop->cancelTimer($this->timer);
                $this->timer = null;
            }
            
            return;
        }
        
        if($this->streams->count() > 0) {
            foreach($this->streams as $stream) {
                $stream->pause();
            }
        }
    }