diff options
author | Will Thompson <will.thompson@collabora.co.uk> | 2009-06-28 16:36:21 +0100 |
---|---|---|
committer | Will Thompson <will.thompson@collabora.co.uk> | 2009-06-28 16:38:57 +0100 |
commit | e43fa0f33299bb7d5ead9f281a374983a15d9710 (patch) | |
tree | 6a9d68640415e6542f8ae53f2b90c49097733174 /src/jingle-transport-iceudp.c | |
parent | 5c6567333b55ea371815b61eff992d163a6e65e6 (diff) | |
download | telepathy-gabble-e43fa0f33299bb7d5ead9f281a374983a15d9710.tar.gz |
Don't assert on unknown candidate types/protocols
Diffstat (limited to 'src/jingle-transport-iceudp.c')
-rw-r--r-- | src/jingle-transport-iceudp.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/jingle-transport-iceudp.c b/src/jingle-transport-iceudp.c index e3f4150a2..0dd52cb15 100644 --- a/src/jingle-transport-iceudp.c +++ b/src/jingle-transport-iceudp.c @@ -399,15 +399,20 @@ inject_candidates (GabbleJingleTransportIface *obj, type_str = "relay"; break; default: - g_assert_not_reached (); + DEBUG ("skipping candidate with unknown type %u", c->type); + continue; } switch (c->protocol) { case JINGLE_TRANSPORT_PROTOCOL_UDP: proto_str = "udp"; break; + case JINGLE_TRANSPORT_PROTOCOL_TCP: + DEBUG ("ignoring TCP candidate"); + continue; default: - g_assert_not_reached (); + DEBUG ("skipping candidate with unknown protocol %u", c->protocol); + continue; } lm_message_node_set_attributes (transport_node, |