diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2017-10-05 11:36:19 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2017-10-05 12:03:16 +0200 |
commit | 48af67fe79987559b8c856ee564e750f68904c3c (patch) | |
tree | ce9c3208c58dfa6363632f139301e21ea99e4523 | |
parent | 0ac263fcae9cd60c7640c2e766dab37a99f41cc8 (diff) |
libqmi-glib,device: use G_SOURCE_CONTINUE/G_SOURCE_REMOVE
(cherry picked from commit b69326c14b905fdbfc04cfb41b78cd4f2d09c2ac)
-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 85d3c46..e675c22 100644 --- a/src/libqmi-glib/qmi-device.c +++ b/src/libqmi-glib/qmi-device.c @@ -1579,13 +1579,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 */ @@ -1595,7 +1595,7 @@ input_ready_cb (GInputStream *istream, parse_response (self); - return TRUE; + return G_SOURCE_CONTINUE; } typedef struct { |