Permalink
Browse files

Fixed #24. Now you can return False from multiplexed connection on_op…

…en to close it.
  • Loading branch information...
1 parent 637619d commit 955758de391f512b3a3cf863c1448e36d1c024cc @mrjoes committed Feb 28, 2012
Showing with 2 additions and 2 deletions.
  1. +0 −1 examples/multiplexed/index.html
  2. +2 −1 tornadio2/session.py
@@ -18,7 +18,6 @@
$("#chat").append("<div>" + data + "</div>");
});
-
function getPrintableDate(date) {
return date.getFullYear().toString() + '/' +
(date.getMonth()+1).toString() + '/' +
View
@@ -301,7 +301,8 @@ def connect_endpoint(self, url):
info = ConnectionInfo(self.remote_ip, args, dict())
- conn.on_open(info)
+ if conn.on_open(info) == False:
+ self.disconnect_endpoint(endpoint)
def disconnect_endpoint(self, endpoint):
"""Disconnect endpoint

0 comments on commit 955758d

Please sign in to comment.