#NEWLINE# def _on_error( self , error ) : #NEWLINE# #INDENT# if ( error not in SOCKET_ERROR_STRINGS ) : #NEWLINE# #INDENT# error = ( - 1 ) #NEWLINE# #UNINDENT# if ( ( ( error == 1 ) and self . is_connected ) or ( ( not self . is_connected ) and ( error == 0 ) and ( not self . _closed ) ) ) : #NEWLINE# #INDENT# log_fct = comm #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# log_fct = _logger ( ) . warning #NEWLINE# #UNINDENT# if ( ( error == 0 ) and ( not self . is_connected ) and ( not self . _closed ) ) : #NEWLINE# #INDENT# QtCore . QTimer . singleShot ( 100 , self . _connect ) #NEWLINE# #UNINDENT# log_fct ( SOCKET_ERROR_STRINGS [ error ] )