weather-service: Fix debug location

This is tricking us into thinking the code is being
executed when in fact it's falling into the early return.
This commit is contained in:
Georges Basile Stavracas Neto
2018-01-27 21:56:14 -02:00
parent 5a651b01f8
commit 5dddff9939
+5 -5
View File
@@ -1318,10 +1318,10 @@ gcal_weather_service_run (GcalWeatherService *self,
{
g_return_if_fail (GCAL_IS_WEATHER_SERVICE (self));
g_debug ("Starting weather service");
if (self->location_service_running && self->weather_service_running)
return;
if (self->location_service_running || self->weather_service_running)
gcal_weather_service_stop (self);
g_debug ("Starting weather service");
if (!location)
{
@@ -1363,11 +1363,11 @@ gcal_weather_service_stop (GcalWeatherService *self)
g_return_if_fail (GCAL_IS_WEATHER_SERVICE (self));
g_debug ("Stop weather service");
if (!self->location_service_running && !self->weather_service_running)
GCAL_RETURN ();
g_debug ("Stopping weather service");
self->location_service_running = FALSE;
self->weather_service_running = FALSE;