stats_gatherer: reject "<unauth>" as a tubid, to avoid screwing up the data.

This commit is contained in:
robk-tahoe 2008-01-31 19:11:31 -07:00
parent 19b76cfadd
commit 0700ccabaa

View File

@ -120,6 +120,10 @@ class StatsGatherer(foolscap.Referenceable, service.MultiService):
def remote_provide(self, provider, nickname):
tubid = self.get_tubid(provider)
if tubid == '<unauth>':
print "WARNING: failed to get tubid for %s (%s)" % (provider, nickname)
# don't add to clients to poll (polluting data) don't care about disconnect
return
self.clients[tubid] = provider
self.nicknames[tubid] = nickname
provider.notifyOnDisconnect(self.lost_client, tubid)