Merge pull request #313 from mayflower/develop

Proposing #310 again in fixed version
This commit is contained in:
Mike Taylor
2015-04-11 20:12:19 -04:00
30 changed files with 1087 additions and 1068 deletions

View File

@@ -733,7 +733,8 @@ class Remote(object):
if(client.boundjid.bare in cls._sessions):
raise RemoteException("There already is a session associated with these credentials!")
else:
cls._sessions[client.boundjid.bare] = client;
cls._sessions[client.boundjid.bare] = client
def _session_close_callback():
with Remote._lock:
del cls._sessions[client.boundjid.bare]