mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-22 14:22:25 +00:00
stats_gatherer: reject "<unauth>" as a tubid, to avoid screwing up the data.
This commit is contained in:
parent
19b76cfadd
commit
0700ccabaa
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user