From 19bc86d9a3bc1d4022ac92098ad26828aed979eb Mon Sep 17 00:00:00 2001
From: Jefry Lagrange <jefry.reyes@gmail.com>
Date: Mon, 22 Aug 2011 23:57:29 -0400
Subject: [PATCH] fix candidate priority

---
 src/common/jingle_ft.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/common/jingle_ft.py b/src/common/jingle_ft.py
index e52702536a..4201307b9a 100644
--- a/src/common/jingle_ft.py
+++ b/src/common/jingle_ft.py
@@ -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
-- 
GitLab