#NEWLINE# def remote_destroy( self ) : #NEWLINE# #INDENT# ' Method should be called to destroy the protocol and will take care\n            of destroying all connections of this Protocol as well as\n            deleting all circular references.\n        ' #NEWLINE# if self . _receivers : #NEWLINE# #INDENT# for interface in reduce ( set . union , self . _receivers . itervalues ( ) ) : #NEWLINE# #INDENT# interface . unregisterProtocol ( interface ) #NEWLINE# #UNINDENT# self . _receivers = None #NEWLINE# #UNINDENT# if self . _endpoint : #NEWLINE# #INDENT# self . _endpoint . unregisterProtocol ( self ) #NEWLINE# self . _endpoint = None