'@see: L{IConsumer.unregisterProducer}'

def unregisterProducer(self):

    if ((self.producer is not None) and (not self.hasStreamingProducer)):
        self.producer.stopStreaming()
    self._producerProducing = False
    self.producer = None
    self.hasStreamingProducer = None
