twisted.transcribe: use same Agent for ReconnectingEventSource

This will be especially important when we add Tor support.
This commit is contained in:
Brian Warner 2016-03-03 12:25:37 -08:00
parent ca99784cd5
commit 8d92b40139

View File

@ -144,7 +144,7 @@ class Channel:
queryargs = urlencode([("appid", self._appid),
("channelid", self._channelid)])
es = ReconnectingEventSource(self._relay_url+"watch?%s" % queryargs,
_handle)
_handle, self._agent)
es.startService() # TODO: .setServiceParent(self)
es.activate()
d.addCallback(lambda _: es.deactivate())