summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2016-02-18 15:45:14 +0100
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2016-02-18 15:45:14 +0100
commitdd01c9057fc528180475d18799afb70a97cb06f5 (patch)
tree468cdea5b8b0a6816c50da4f8ecb00e27f0dd222
parentc4b12a16ef76a2ad4f0b1f839b181b0c047f508f (diff)
downloaduca-net-dd01c9057fc528180475d18799afb70a97cb06f5.tar.gz
uca-net-dd01c9057fc528180475d18799afb70a97cb06f5.tar.bz2
uca-net-dd01c9057fc528180475d18799afb70a97cb06f5.tar.xz
uca-net-dd01c9057fc528180475d18799afb70a97cb06f5.zip
Do not throw assertion in case of mismatched data
-rw-r--r--uca-net-camera.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/uca-net-camera.c b/uca-net-camera.c
index 1194e09..6091ebb 100644
--- a/uca-net-camera.c
+++ b/uca-net-camera.c
@@ -81,7 +81,7 @@ handle_default_reply (GSocketConnection *connection, UcaNetMessageType type, GEr
input = g_io_stream_get_input_stream (G_IO_STREAM (connection));
if (g_input_stream_read_all (input, &reply, sizeof (reply), NULL, NULL, error)) {
- g_assert (reply.type == type);
+ g_warn_if_fail (reply.type == type);
if (reply.error.occurred) {
g_set_error_literal (error, g_quark_from_string (reply.error.domain), reply.error.code, reply.error.message);
@@ -505,7 +505,7 @@ read_get_properties_reply (GObject *object, GInputStream *input, GError **error)
UcaNetMessageGetPropertiesReply reply;
if (g_input_stream_read_all (input, &reply, sizeof (reply), NULL, NULL, error)) {
- g_assert (reply.type == UCA_NET_MESSAGE_GET_PROPERTIES);
+ g_warn_if_fail (reply.type == UCA_NET_MESSAGE_GET_PROPERTIES);
for (guint i = 0; i < reply.num_properties; i++)
read_property_reply (object, input, i, error);