#NEWLINE# @ react . connect ( 'manager.connections_changed' ) #NEWLINE# def _auto_closer( name ) : #NEWLINE# #INDENT# if ( not server . _auto_stop ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# for name in manager . get_app_names ( ) : #NEWLINE# #INDENT# proxies = manager . get_connections ( proxies ) #NEWLINE# if proxies : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# logging . info ( 'Stopping Flexx event loop.' ) #NEWLINE# server . stop ( )