From 47b3579515ab980343278ed3cc7211db074bb664 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Deuc=D0=B5?= <shurd@sasktel.net>
Date: Mon, 5 Apr 2021 20:10:42 -0400
Subject: [PATCH] Use this, not ctx in handlers.

---
 exec/load/dns.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/exec/load/dns.js b/exec/load/dns.js
index d7e730232b..ee2967aa94 100644
--- a/exec/load/dns.js
+++ b/exec/load/dns.js
@@ -646,7 +646,7 @@ DNS.prototype.resolve = function(host, callback, thisObj)
 		this.AAAA.done = true;
 		if (this.A.done) {
 			if (this.final !== undefined)
-				js.dispatchEvent(ctx.unique_id + '.final', this);
+				js.dispatchEvent(this.unique_id + '.final', this);
 			else
 				this.final_callback(this);
 		}
@@ -675,7 +675,7 @@ DNS.prototype.resolve = function(host, callback, thisObj)
 				return;
 			this[rectype].addrs.push(ans.rdata);
 		}, this);
-		if (ctx.callback !== undefined)
+		if (this.callback !== undefined)
 			js.dispatchEvent(this.unique_id + '.resp'+rectype, this);
 		else
 			this['resp'+rectype+'_callback']();
-- 
GitLab