- VPStuff.clientcounter.delete(self.reqtype+'\\'+self.path_unquoted, self.clientip)
- if not VPStuff.clientcounter.get(self.reqtype+'\\'+self.path_unquoted):
- try:
- logger.debug("That was the last client, destroying VPClient")
- VPStuff.vlcclient.stopBroadcast(self.vlcid)
- except:
- pass
- self.vp.destroy()
-
+ logger.info("Closed connection from " + self.clientip + " path " + self.path)
+ VPStuff.clientcounter.delete(self.reqtype+'\\'+self.path_unquoted, self.clientip, self.unic)
+# if not VPStuff.clientcounter.get(self.reqtype+'\\'+self.path_unquoted):
+# try:
+# logger.debug("That was the last client, destroying VPClient")
+# logger.info("Stopping broadcasting " + self.path)
+# VPStuff.vlcclient.stopBroadcast(self.vlcid)
+# except vlcclient.VlcException:
+# logger.error("VLC connection problem, %s client(s)!" % VPStuff.clientcounter.total)
+# if VPStuff.clientcounter.total == 0:
+# logger.error("Probably VLC hang")
+# VPStuff.vlc.kill()
+# except:
+# pass
+ self.vp.destroy()