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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user