diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2017-10-05 11:36:19 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2017-10-05 11:36:19 +0200 |
commit | b69326c14b905fdbfc04cfb41b78cd4f2d09c2ac (patch) | |
tree | ed8f68f153f517c94443f6a909fe2bd07a34c435 | |
parent | 9cf7034755173edbd86ab39b3ea17dfb189a3c10 (diff) |
libqmi-glib,device: use G_SOURCE_CONTINUE/G_SOURCE_REMOVE
-rw-r--r-- | src/libqmi-glib/qmi-device.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libqmi-glib/qmi-device.c b/src/libqmi-glib/qmi-device.c index 841bcb4..40ad925 100644 --- a/src/libqmi-glib/qmi-device.c +++ b/src/libqmi-glib/qmi-device.c @@ -1555,13 +1555,13 @@ input_ready_cb (GInputStream *istream, g_error_free (error); /* Close the device */ qmi_device_close (self, NULL); - return FALSE; + return G_SOURCE_REMOVE; } if (r == 0) { /* HUP! */ g_warning ("Cannot read from istream: connection broken"); - return FALSE; + return G_SOURCE_REMOVE; } /* else, r > 0 */ @@ -1571,7 +1571,7 @@ input_ready_cb (GInputStream *istream, parse_response (self); - return TRUE; + return G_SOURCE_CONTINUE; } typedef struct { |