parameters: (self, connection)
docstring: [Internal]
docstring_summary: [Internal]
docstring_tokens: [ Internal ]
function: def _remove_connection(self, connection):
          """[Internal]"""
          self.connections.remove(connection)
          if self.fn_to_remove_socket:
              self.fn_to_remove_socket(connection._get_socket())
function_tokens: def _remove_connection ( self , connection ) : self . connections . remove ( connection ) if self . fn_to_remove_socket : self . fn_to_remove_socket ( connection . _get_socket ( ) )