From 9415d81c5f938907815b11cdb8be3c52ad7debbf Mon Sep 17 00:00:00 2001 From: John-Mark Gurney Date: Wed, 13 Sep 2006 20:41:16 -0800 Subject: [PATCH] prevent a traceback if we've already stopProcducing... [git-p4: depot-paths = "//depot/": change = 896] --- shoutcast.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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