|
|
@@ -197,7 +197,6 @@ qdevice_net_connect_heuristics_exec_result_callback(void *heuristics_instance_pt
|
|
|
instance = heuristics_instance->qdevice_instance_ptr;
|
|
|
net_instance = instance->model_data;
|
|
|
|
|
|
-
|
|
|
if (qdevice_heuristics_result_notifier_list_set_active(&heuristics_instance->exec_result_notifier_list,
|
|
|
qdevice_net_connect_heuristics_exec_result_callback, 0) != 0) {
|
|
|
log(LOG_ERR, "Can't deactivate net connect heuristics exec callback notifier");
|
|
|
@@ -208,6 +207,13 @@ qdevice_net_connect_heuristics_exec_result_callback(void *heuristics_instance_pt
|
|
|
return (0);
|
|
|
}
|
|
|
|
|
|
+ if (net_instance->state != QDEVICE_NET_INSTANCE_STATE_WAITING_VOTEQUORUM_CMAP_EVENTS) {
|
|
|
+ /*
|
|
|
+ * Not connected to qnetd -> heuristics will be called again on new connect
|
|
|
+ */
|
|
|
+ return (0);
|
|
|
+ }
|
|
|
+
|
|
|
heuristics = qdevice_net_heuristics_exec_result_to_tlv(exec_result);
|
|
|
|
|
|
send_config_node_list = 1;
|