socket: Avoid g_main_context_ref(NULL) calls using the default context
authorPhilip Withnall <philip.withnall@collabora.co.uk>
Wed, 2 Jul 2014 13:48:07 +0000 (14:48 +0100)
committerOlivier CrĂȘte <olivier.crete@collabora.com>
Mon, 7 Jul 2014 19:47:02 +0000 (15:47 -0400)
commit88c68debdc5f29f29d8ba031ba7d66fbc109314d
tree5dbad92e1e6015b968cb80e398cb624449cb1000
parentf80631064fc7c26553d8b6f7a59b602ca4feb648
socket: Avoid g_main_context_ref(NULL) calls using the default context

If (agent->main_context == NULL) the sockets are created with a NULL
main context, which they then try to ref. That does not end well.
socket/tcp-active.c
socket/tcp-passive.c