src/Plugin.php
public function handleReceived(Event $event, Queue $queue)
    {
        $connection = $event->getConnection();
        $timers = $this->getTimers();
        if ($timers->contains($connection)) {
            $timers->offsetGet($connection)->cancel();
        } else {
            $this->getLogger()->debug('Attaching activity listener for connection');
        }

        $timer = $this->getLoop()->addTimer($this->wait, array($this, 'callbackPhoneHome'));
        $timer->setData($connection);
        $timers->attach($connection, $timer);
    }
public function handleReceived(Event $event, Queue $queue)
    {
        $connection = $event->getConnection();
        $timers = $this->getTimers();
        if ($timers->contains($connection)) {
            $timers->offsetGet($connection)->cancel();
        } else {
            $this->getLogger()->debug('Attaching activity listener for connection');
        }

        $timer = $this->getLoop()->addTimer($this->wait, array($this, 'callbackPhoneHome'));
        $timer->setData($connection);
        $timers->attach($connection, $timer);
    }
Neutralise the existing timer, if present, and create a new timer.

@param \Phergie\Irc\Event\EventInterface $event
@param \Phergie\Irc\Bot\React\EventQueueInterface $queue