#NEWLINE# def disconnect( self ) : #NEWLINE# #INDENT# self . queueEmpty . addCallback ( ( lambda result : self . stopConnecting ( ) ) ) #NEWLINE# readyToStop = DeferredList ( [ self . connectionLost , self . connectFailed ] , fireOnOneCallback = True , fireOnOneErrback = True ) #NEWLINE# self . checkQueue ( ) #NEWLINE# if ( ( not readyToStop . called ) and ( not self . started ) ) : #NEWLINE# #INDENT# readyToStop . callback ( None ) #NEWLINE# #UNINDENT# return readyToStop