send a candidate-error when we get a session-accept with no streamhost
This commit is contained in:
parent
212f33cafa
commit
f35c3d9143
|
@ -133,6 +133,9 @@ class SocksQueue:
|
||||||
file_props = self.files_props[account][sid]
|
file_props = self.files_props[account][sid]
|
||||||
file_props['failure_cb'] = on_failure
|
file_props['failure_cb'] = on_failure
|
||||||
|
|
||||||
|
if not file_props['streamhosts']:
|
||||||
|
on_failure(file_props['sid'])
|
||||||
|
|
||||||
# add streamhosts to the queue
|
# add streamhosts to the queue
|
||||||
for streamhost in file_props['streamhosts']:
|
for streamhost in file_props['streamhosts']:
|
||||||
if 'type' in streamhost and streamhost['type'] == 'proxy':
|
if 'type' in streamhost and streamhost['type'] == 'proxy':
|
||||||
|
|
Loading…
Reference in New Issue