'Called internally by the data sending loop to clean up state that was
being used for the stream. Called when the stream is complete.
@param streamID: The ID of the stream to clean up state for.
@type streamID: L{int}'

def _requestDone(self, streamID):

    del self._outboundStreamQueues[streamID]
    self.priority.remove_stream(streamID)
    del self.streams[streamID]
    cleanupCallback = self._streamCleanupCallbacks.pop(streamID)
    cleanupCallback.callback(streamID)
