summaryrefslogtreecommitdiffstats
path: root/src/async.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/async.c')
-rw-r--r--src/async.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/async.c b/src/async.c
index 3ab5f5d..46419ee 100644
--- a/src/async.c
+++ b/src/async.c
@@ -63,7 +63,7 @@ void fastd_async_init(void) {
/** Handles a DNS resolver response */
static void handle_resolve_return(const fastd_async_resolve_return_t *resolve_return) {
fastd_peer_t *peer = fastd_peer_find_by_id(resolve_return->peer_id);
- if (!peer)
+ if (!peer || !fastd_peer_is_enabled(peer))
return;
if (fastd_peer_is_dynamic(peer))