Skip to content

Commit

Permalink
[fix]
Browse files Browse the repository at this point in the history
  • Loading branch information
mosquito committed Mar 14, 2015
1 parent 5418e7b commit 3fd42d3
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion wsrpc/websocket/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,14 @@ def _execute(self, transforms, *args, **kwargs):
if self.authorize():
return super(WebSocketBase, self)._execute(transforms, *args, **kwargs)
else:
return self.send_error(403)
if self._transforms is None:
self._transforms = []

f = tornado.gen.Future()
def resolve():
f.set_result(self.send_error(403))
tornado.ioloop.IOLoop.instance().add_callback(resolve)
return f

def authorize(self):
return True
Expand Down

0 comments on commit 3fd42d3

Please sign in to comment.