#NEWLINE# def processEnded( self , status ) : #NEWLINE# #INDENT# '\n        :api:`twisted.internet.protocol.ProcessProtocol <ProcessProtocol>` API\n        ' #NEWLINE# self . cleanup ( ) #NEWLINE# if ( status . value . exitCode is None ) : #NEWLINE# #INDENT# if self . _did_timeout : #NEWLINE# #INDENT# err = RuntimeError ( 'Timeout waiting for Tor launch..' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# err = RuntimeError ( ( 'Tor was killed (%s).' % status . value . signal ) ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# err = RuntimeError ( ( 'Tor exited with error-code %d' % status . value . exitCode ) ) #NEWLINE# #UNINDENT# log . err ( err ) #NEWLINE# if self . connected_cb : #NEWLINE# #INDENT# self . connected_cb . errback ( err ) #NEWLINE# self . connected_cb = None