#NEWLINE# def main_loop( self ) : #NEWLINE# #INDENT# while ( not self . _stop . is_set ( ) ) : #NEWLINE# #INDENT# self . _pipes = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for ( name , module , params ) in self . _enabledList : #NEWLINE# #INDENT# if module . is_active : #NEWLINE# #INDENT# module . thr_block . wait ( 3 ) #NEWLINE# module . thr_block . clear ( ) #NEWLINE# if ( params [ 'pipe' ] not in self . _pipes ) : #NEWLINE# #INDENT# self . _pipes [ name [ 'pipe' ] ] = CANSploitMessage ( ) #NEWLINE# #UNINDENT# self . _pipes [ params [ 'pipe' ] ] = module . do_effect ( self . _pipes [ params [ 'pipe' ] ] , params ) #NEWLINE# module . thr_block . set ( ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# for ( name , module , params ) in self . _enabledList : #NEWLINE# #INDENT# module . do_stop ( params )