diff options
author | Olivier CrĂȘte <olivier.crete@collabora.com> | 2014-03-27 12:33:23 -0400 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@collabora.com> | 2014-03-27 12:41:28 -0400 |
commit | 693c96dc692f65828da798fc4aea8932818a6ccc (patch) | |
tree | 450e3ea10acfda2335b4843be386883d594e0dad /socket | |
parent | cd6f572e1b9c88a2258dd88da50d0e935a569980 (diff) | |
download | libnice-693c96dc692f65828da798fc4aea8932818a6ccc.tar.gz |
tcp-bsd: Use default main context if none specified
Diffstat (limited to 'socket')
-rw-r--r-- | socket/tcp-bsd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/socket/tcp-bsd.c b/socket/tcp-bsd.c index 3a08874..3018832 100644 --- a/socket/tcp-bsd.c +++ b/socket/tcp-bsd.c @@ -164,6 +164,8 @@ nice_tcp_bsd_socket_new (GMainContext *ctx, NiceAddress *addr) sock->priv = priv = g_slice_new0 (TcpPriv); + if (ctx == NULL) + ctx = g_main_context_default (); priv->context = g_main_context_ref (ctx); priv->server_addr = *addr; priv->error = FALSE; |