diff --git a/src/ssb.c b/src/ssb.c index 1b9f3620..bf116e9d 100644 --- a/src/ssb.c +++ b/src/ssb.c @@ -3810,8 +3810,10 @@ static bool _get_global_setting_bool(tf_ssb_t* ssb, const char* name, bool defau static void _tf_ssb_update_settings_work(uv_work_t* work) { update_settings_t* update = work->data; + tf_ssb_record_thread_busy(update->ssb, true); update->is_room = _get_global_setting_bool(update->ssb, "room", true); _get_global_setting_string(update->ssb, "room_name", update->room_name, sizeof(update->room_name)); + tf_ssb_record_thread_busy(update->ssb, false); } static void _tf_ssb_update_settings_after_work(uv_work_t* work, int result) diff --git a/src/ssb.connections.c b/src/ssb.connections.c index 9e2f6585..03210ada 100644 --- a/src/ssb.connections.c +++ b/src/ssb.connections.c @@ -89,7 +89,9 @@ typedef struct _tf_ssb_connections_get_next_t static void _tf_ssb_connections_get_next_work(uv_work_t* work) { tf_ssb_connections_get_next_t* next = work->data; + tf_ssb_record_thread_busy(next->ssb, true); next->ready = _tf_ssb_connections_get_next_connection(next->connections, next->host, sizeof(next->host), &next->port, next->key, sizeof(next->key)); + tf_ssb_record_thread_busy(next->ssb, false); } static void _tf_ssb_connections_get_next_after_work(uv_work_t* work, int status)