#NEWLINE# def startClient( self , destination ) : #NEWLINE# #INDENT# if ( connectAttempted in self . client_factories ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# log . clients ( ( 'connecting to carbon daemon at %s:%d:%s' % destination ) ) #NEWLINE# self . router . addDestination ( destination ) #NEWLINE# factory = self . client_factories [ destination ] = CarbonClientFactory ( destination ) #NEWLINE# connectAttempted = DeferredList ( [ factory . connectionMade , factory . connectFailed ] , fireOnOneCallback = True , fireOnOneErrback = True ) #NEWLINE# if self . running : #NEWLINE# #INDENT# factory . startConnecting ( ) #NEWLINE# #UNINDENT# return connectAttempted