Commit 89db4656 authored by Ankit's avatar Ankit Committed by Zeeshan Ali

nmea-source: Show debug message on source switching

When geoclue switches from one nmea source to another a dangling
on_read_gga_sentence() gets called before the the socket is closed
and the callback shows effect after the socket is closed. This
causes on_read_gga_sentence() to show G_IO_STREAM_CLOSED error as
as warning message. Display a debug message instead.
parent d3893e6f
......@@ -455,7 +455,9 @@ on_read_gga_sentence (GObject *object,
if (message == NULL) {
if (error != NULL) {
if (error->code != G_IO_ERROR_CANCELLED)
if (error->code == G_IO_ERROR_CLOSED)
g_debug ("Socket closed.");
else if (error->code != G_IO_ERROR_CANCELLED)
g_warning ("Error when receiving message: %s",
g_error_free (error);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment