twisted.transcribe: use same Agent for ReconnectingEventSource
This will be especially important when we add Tor support.
This commit is contained in:
parent
ca99784cd5
commit
8d92b40139
|
@ -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())
|
||||
|
|
Loading…
Reference in New Issue
Block a user