summaryrefslogtreecommitdiff
path: root/agent/agent.c
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.com>2017-09-05 14:50:29 -0400
committerOlivier CrĂȘte <olivier.crete@collabora.com>2017-09-05 14:50:29 -0400
commit5a42089aeb2dbbb52d820cd1b6efdfcfbe9b055e (patch)
tree3140403ca78703b0d289daa6948556ffacdf26d6 /agent/agent.c
parentdbaf8f5ccd76089e340883887c7e08e6c04de80a (diff)
downloadlibnice-5a42089aeb2dbbb52d820cd1b6efdfcfbe9b055e.tar.gz
agent: Set error if it isn't set
Diffstat (limited to 'agent/agent.c')
-rw-r--r--agent/agent.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/agent/agent.c b/agent/agent.c
index e48d7f3..a4dcc0c 100644
--- a/agent/agent.c
+++ b/agent/agent.c
@@ -4280,7 +4280,7 @@ nice_agent_recv_cancelled_cb (GCancellable *cancellable, gpointer user_data)
{
GError **error = user_data;
- if (error && *error)
+ if (error && !*error)
g_cancellable_set_error_if_cancelled (cancellable, error);
return G_SOURCE_REMOVE;
}