send a candidate-error when we get a session-accept with no streamhost

This commit is contained in:
Yann Leboulanger 2011-10-29 11:34:05 +02:00
parent 212f33cafa
commit f35c3d9143
1 changed files with 3 additions and 0 deletions

View File

@ -133,6 +133,9 @@ class SocksQueue:
file_props = self.files_props[account][sid]
file_props['failure_cb'] = on_failure
if not file_props['streamhosts']:
on_failure(file_props['sid'])
# add streamhosts to the queue
for streamhost in file_props['streamhosts']:
if 'type' in streamhost and streamhost['type'] == 'proxy':