diff --git a/calendar/backends/caldav/e-cal-backend-caldav.c b/calendar/backends/caldav/e-cal-backend-caldav.c
index 694a410..6a68838 100644
--- a/calendar/backends/caldav/e-cal-backend-caldav.c
+++ b/calendar/backends/caldav/e-cal-backend-caldav.c
@@ -2651,7 +2651,7 @@ caldav_refresh (ECalBackendSync *backend,
 	g_mutex_lock (priv->busy_lock);
 
 	if (!priv->loaded
-	    || priv->slave_cmd != SLAVE_SHOULD_SLEEP
+	    || priv->slave_cmd == SLAVE_SHOULD_DIE
 	    || !check_state (cbdav, &online, NULL)
 	    || !online) {
 		g_mutex_unlock (priv->busy_lock);
