From 2d38f881ad0c980623ffccf7fac82318d4764a40 Mon Sep 17 00:00:00 2001 From: kos Date: Mon, 10 Dec 2012 14:52:38 +0900 Subject: [PATCH] [browser] fix bug. --- lib/python/Plugins/Extensions/HbbTV/plugin.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/python/Plugins/Extensions/HbbTV/plugin.py b/lib/python/Plugins/Extensions/HbbTV/plugin.py index ab36038..56db6d8 100644 --- a/lib/python/Plugins/Extensions/HbbTV/plugin.py +++ b/lib/python/Plugins/Extensions/HbbTV/plugin.py @@ -350,9 +350,12 @@ class StreamServer: class ServerFactory: def doListenUnixTCP(self, name, handler): def destroy(name): - if os.path.exists(name): - os.unlink(name) - print "Removed ", name + import os + try: + if os.path.exists(name): + os.unlink(name) + print "Removed ", name + except: pass destroy(name) params = SocketParams() -- 2.7.4