jingle/register.c
changeset 67 c12618793df0
parent 66 cd16ab43a285
child 72 277778138b4b
equal deleted inserted replaced
66:cd16ab43a285 67:c12618793df0
   125     
   125     
   126     // Look if it's forbidden
   126     // Look if it's forbidden
   127     if (g_slist_find_custom(*forbid, thistransport->xmlns, cmp_forbid))
   127     if (g_slist_find_custom(*forbid, thistransport->xmlns, cmp_forbid))
   128       continue;
   128       continue;
   129     
   129     
   130     if (thistransport->priority > bestprio) {
   130     if (thistransport->transtype == requestedtype &&
       
   131         thistransport->priority > bestprio) {
   131       bestprio = thistransport->priority;
   132       bestprio = thistransport->priority;
   132       besttransport = thistransport;
   133       besttransport = thistransport;
   133     }
   134     }
   134   }
   135   }
   135   *forbid = g_slist_append(*forbid, besttransport->xmlns);
   136   *forbid = g_slist_append(*forbid, besttransport->xmlns);