fix candidate priority

This commit is contained in:
Jefry Lagrange 2011-08-22 23:57:29 -04:00
parent 609ee79791
commit 19bc86d9a3
1 changed files with 1 additions and 2 deletions

View File

@ -356,7 +356,7 @@ class JingleFileTransfer(JingleContent):
our_pr = int(self.nominated_cand['our-cand']['priority'])
if peer_pr != our_pr:
return peer_pr > our_pr
return our_pr > peer_pr
else:
return self.weinitiate
@ -373,7 +373,6 @@ class JingleFileTransfer(JingleContent):
else:
type = 'server'
print type
# FIXME if streamhost_used is none where do we get the proxy host
if streamhost_used and streamhost_used['type'] == 'proxy':
self.file_props['streamhost-used'] = True