Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(31)

Unified Diff: trunk/src/sync/tools/testserver/xmppserver.py

Issue 17610004: Revert 208315 "Make use of InvalidationService" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « trunk/src/sync/tools/sync_listen_notifications.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/sync/tools/testserver/xmppserver.py
===================================================================
--- trunk/src/sync/tools/testserver/xmppserver.py (revision 208346)
+++ trunk/src/sync/tools/testserver/xmppserver.py (working copy)
@@ -575,14 +575,6 @@
def SetAuthenticated(self, auth_valid):
self._authenticated = auth_valid
- # We check authentication only when establishing new connections. We close
- # all existing connections here to make sure previously connected clients
- # pick up on the change. It's a hack, but it works well enough for our
- # purposes.
- if not self._authenticated:
- for connection in self._handshake_done_connections:
- connection.close()
-
def GetAuthenticated(self):
return self._authenticated
« no previous file with comments | « trunk/src/sync/tools/sync_listen_notifications.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698