Thanks,  this code block will stuck on macos,   `C.nice_agent_gather_
candidates`  just does not return.
Works fun on linux.
Maybe there is a bug when use cgo with glib or libnice or gnutls on macos.

Tyler Compton <xavi...@gmail.com> 于2019年5月23日周四 上午6:15写道:

> Beyond just mailing list etiquette, you'll probably get better responses
> if you provide your code in plain text. I think that some of the more
> responsive people in golang-nuts use text-only email viewers, though that's
> only a guess!
>
> I took the liberty of transcribing this one, free of charge :)
>
> func (a *Agent) GatherCandidates() error {
>     a.mtx.Lock()
>     defer a.mtx.Unlock()
>     fmt.Println("GatherCandidates11111")
>     rv := int(C.nice_agent_gather_candidates(a.agent, C.guint(a.stream)))
>     if rv == 0 {
>         return errors.New("failed to gather candidates")
>     }
>     fmt.Println("GatherCandidates22222")
>     return nil
> }
>
> On Wed, May 22, 2019 at 3:09 AM xiang liu <leeoxi...@gmail.com> wrote:
>
>> Sorry about this.
>>
>> 在 2019年5月22日星期三 UTC+8下午4:43:27,Jan Mercl写道:
>>>
>>> On Wed, May 22, 2019 at 10:05 AM xiang liu <leeo...@gmail.com> wrote:
>>>
>>> Please use only plain text for source code in emails. Where available,
>>> a link to play.golang.org is also good. Thanks.
>>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "golang-nuts" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to golang-nuts+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/golang-nuts/1379f6a2-e700-43ed-8cf6-c633ea567d1b%40googlegroups.com
>> <https://groups.google.com/d/msgid/golang-nuts/1379f6a2-e700-43ed-8cf6-c633ea567d1b%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAHfoA_%3D0dV25zRYN3R%2BzvQQSftLRVHE4n_Zk6eD_LKF7zne4WA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to