diff --git a/shoutcast.py b/shoutcast.py index 8c73145..1e92f92 100644 --- a/shoutcast.py +++ b/shoutcast.py @@ -133,7 +133,8 @@ class ShoutTransfer(shoutcast.ShoutcastClient): pass def stopProducing(self): - shoutcast.ShoutcastClient.stopProducing(self) + if self.transport is not None: + shoutcast.ShoutcastClient.stopProducing(self) self.request = None self.passback = None