diff options
author | Louis-Francis Ratté-Boulianne <louis-francis.ratte-boulianne@collabora.co.uk> | 2011-08-17 00:41:08 -0400 |
---|---|---|
committer | Louis-Francis Ratté-Boulianne <louis-francis.ratte-boulianne@collabora.co.uk> | 2011-08-17 00:41:08 -0400 |
commit | c437c0a4d2f09ad113e8ab0a7688db1b01c9ba3b (patch) | |
tree | 921565e815f854858c90865cb1d8cd45f1d37f3b | |
parent | 3b8f9fd8bb929fb35cab1bd0ae3b3ff7a1aacbd5 (diff) |
bugfix: fix 911 errors when trying to start conversation using HTTP connection.
* Directly connect to right server when establishing connection for switchboard.
-rw-r--r-- | papyon/transport.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/papyon/transport.py b/papyon/transport.py index a643ba5..761a9bc 100644 --- a/papyon/transport.py +++ b/papyon/transport.py @@ -351,7 +351,10 @@ class HTTPPollConnection(BaseTransport): url""" def __init__(self, server, server_type=ServerType.NOTIFICATION, proxies={}): self._target_server = server - server = ("gateway.messenger.hotmail.com", 80) + if server_type == ServerType.SWITCHBOARD: + server = (server[0], 80) + else: + server = ("gateway.messenger.hotmail.com", 80) BaseTransport.__init__(self, server, server_type, proxies) self._setup_transport(server[0], server[1], proxies) |