#NEWLINE# def peer_disconnected( self , link , rt_id , reason ) : #NEWLINE# #INDENT# _log . analyze ( self . node . id , '+' , { #NEWLINE# #INDENT# 'reason' : reason , #NEWLINE# 'links_equal' : ( ( link == self . links [ rt_id ] . transport ) if ( rt_id in self . links ) else 'Gone' ) , #NEWLINE# #UNINDENT# } , peer_node_id = link ) #NEWLINE# if ( ( rt_id in self . links ) and ( link == self . links [ rt_id ] . transport ) ) : #NEWLINE# #INDENT# self . link_remove ( rt_id )