device: order assert before logging in concheck_cb()

This commit is contained in:
Thomas Haller 2019-10-03 15:32:32 +02:00
parent e8588d0c6f
commit 5a24ad53ad

View file

@ -3024,15 +3024,15 @@ concheck_cb (NMConnectivity *connectivity,
/* keep @self alive, while we invoke callbacks. */
priv = NM_DEVICE_GET_PRIVATE (self);
nm_assert (handle && c_list_contains (&priv->concheck_lst_head, &handle->concheck_lst));
seq = handle->seq;
_LOGT (LOGD_CONCHECK, "connectivity: [Ipv%c] complete check (seq:%llu, state:%s)",
nm_utils_addr_family_to_char (handle->addr_family),
(long long unsigned) handle->seq,
nm_connectivity_state_to_string (state));
nm_assert (handle && c_list_contains (&priv->concheck_lst_head, &handle->concheck_lst));
seq = handle->seq;
/* find out, if there are any periodic checks pending (either whether they
* were scheduled before or after @handle. */
any_periodic_before = FALSE;