@@ -39,7 +39,6 @@ def __init__(self, application,
39
39
flash_policy_file = settings .get ('flash_policy_file' , None )
40
40
flash_policy_port = settings .get ('flash_policy_port' , None )
41
41
socket_io_port = settings .get ('socket_io_port' , 8001 )
42
- protocols = settings .get ('enabled_protocols' , dict ())
43
42
44
43
HTTPServer .__init__ (self ,
45
44
application ,
@@ -53,14 +52,15 @@ def __init__(self, application,
53
52
54
53
self .listen (socket_io_port )
55
54
56
- if (flash_policy_file is not None
57
- and flash_policy_port is not None
58
- and 'flashsocket' in protocols ):
59
- logging .info ('Starting Flash Policy Server on Port \' %s\' ' ,
60
- flash_policy_port )
55
+ if flash_policy_file is not None and flash_policy_port is not None :
56
+ try :
57
+ logging .info ('Starting Flash policy server on port \' %d\' ' ,
58
+ flash_policy_port )
61
59
62
- flash_policy = FlashPolicyServer (port = flash_policy_port ,
63
- policy_file = flash_policy_file )
60
+ flash_policy = FlashPolicyServer (port = flash_policy_port ,
61
+ policy_file = flash_policy_file )
62
+ except Exception , ex :
63
+ logging .error ('Failed to start Flash policy server: %s' , ex )
64
64
65
65
io_loop = io_loop or ioloop .IOLoop .instance ()
66
66
logging .info ('Entering IOLoop...' )
0 commit comments