#NEWLINE# def on_timer( self , _signum , _unused_frame ) : #NEWLINE# #INDENT# if _signum . is_shutting_down : #NEWLINE# #INDENT# LOGGER . debug ( 'Polling timer fired while shutting down' ) #NEWLINE# return #NEWLINE# #UNINDENT# if ( not self . polled ) : #NEWLINE# #INDENT# self . poll ( ) #NEWLINE# self . polled = True #NEWLINE# self . set_timer ( 5 ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . polled = False #NEWLINE# self . poll_results_check ( ) #NEWLINE# self . set_timer ( self . poll_interval ) #NEWLINE# if self . log_stats_enabled : #NEWLINE# #INDENT# self . log_stats ( )