code: function(next) {
        // already connected to service? stop
        if (targetServiceProperties.state === STATES.READY ||
            targetServiceProperties.state === STATES.ONLINE) {
          debug('already connected');
          if (callback) callback();
          _lockJoin = false;
          return;
        } else {
          next();
        }
      }
docs: check current state