<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Ah, I see. I was using the online basic usage example of NiceAgent (<a
      href="http://nice.freedesktop.org/libnice/NiceAgent.html">link</a>)
    as a reference. Maybe it should be updated to show that a main loop
    IS required? I assumed it was optional because there NULL is passed
    in.<br>
    <br>
    Regards<br>
    ~<br>
    <br>
    <br>
    <div class="moz-cite-prefix">Am 30.10.2014 09:48, schrieb Philip
      Withnall:<br>
    </div>
    <blockquote
cite="mid:1414658907.7034.1.camel@philip-work-laptop.cbg.collabora.co.uk"
      type="cite">
      <pre wrap="">On Wed, 2014-10-29 at 15:15 +0100, ND wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">I try to use libnice as a callable object, so my agent has no GMainLoop 
and uses a mutex to wait for the candidate-gathering-done signal. As it 
never comes my application is stuck :/ See the relevant code below:
</pre>
      </blockquote>
      <pre wrap="">
That’s your problem. libnice *requires* a GMainLoop to run, otherwise
none of its timers will fire, which are a core part of the ICE process.

Philip
</pre>
    </blockquote>
    <br>
  
<br /><br />
<hr style='border:none; color:#909090; background-color:#B0B0B0; height: 1px; width: 99%;' />
<table style='border-collapse:collapse;border:none;'>
        <tr>
                <td style='border:none;padding:0px 15px 0px 8px'>
                        <a href="http://www.avast.com/">
                                <img border=0 src="http://static.avast.com/emails/avast-mail-stamp.png" />
                        </a>
                </td>
                <td>
                        <p style='color:#3d4d5a; font-family:"Calibri","Verdana","Arial","Helvetica"; font-size:12pt;'>
                                Diese E-Mail ist frei von Viren und Malware, denn der <a href="http://www.avast.com/">avast! Antivirus</a> Schutz ist aktiv.
                        </p>
                </td>
        </tr>
</table>
<br />
</body>
</html>