foobarlab / UpStage-Video-Hack

UpStage Streaming Hack
http://www.foobarlab.net/
GNU General Public License v2.0
5 stars 1 forks source link

Show error when the Flash Policy Port is unaccessible #84

Open foobarlab opened 11 years ago

foobarlab commented 11 years ago

The following entry in upstage.log appears whenever a client could not access the policyport when opening a stage. As an exception is thrown this could be catched and shown as a warning message on the splash screen...

2013-04-17 13:27:43+0200 [_UpstageSocket,8,XX.XXX.XX.XXX] ERROR handling socket line: '<policy-file-request/>'
2013-04-17 13:27:43+0200 [_UpstageSocket,8,XX.XXX.XX.XXX] Unhandled Error
        Traceback (most recent call last):
          File "/usr/lib/python2.5/site-packages/twisted/python/log.py", line 51, in callWithLogger
            return callWithContext({"system": lp}, func, *args, **kw)
          File "/usr/lib/python2.5/site-packages/twisted/python/log.py", line 36, in callWithContext
            return context.call({ILogContext: newCtx}, func, *args, **kw)
          File "/usr/lib/python2.5/site-packages/twisted/python/context.py", line 59, in callWithContext
            return self.currentContext().callWithContext(ctx, func, *args, **kw)
          File "/usr/lib/python2.5/site-packages/twisted/python/context.py", line 37, in callWithContext
            return func(*args,**kw)
        --- <exception caught here> ---
          File "/usr/lib/python2.5/site-packages/twisted/internet/selectreactor.py", line 146, in _doReadOrWrite
            why = getattr(selectable, method)()
          File "/usr/lib/python2.5/site-packages/twisted/internet/tcp.py", line 362, in doRead
            return self.protocol.dataReceived(data)
          File "/usr/lib/python2.5/site-packages/twisted/protocols/basic.py", line 148, in dataReceived
            self.lineReceived(line)
          File "/opt/upstage-deploy/upstage/server.py", line 280, in lineReceived
            print "called %s with args %s" %(handler, d)
        exceptions.UnboundLocalError: local variable 'd' referenced before assignment