aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2022-03-18 16:13:09 +0000
committerMatthew Wild <mwild1@gmail.com>2022-03-18 16:13:09 +0000
commit6050cd0da5a2463f2d19466adc5f87357c65a0dd (patch)
tree28364f12fae9f927b1ef4d21cda2a5fbd3f51fce
parent3c5d7eaef1d3b6d9c93c6ae510317f671da33ceb (diff)
downloadprosody-6050cd0da5a2463f2d19466adc5f87357c65a0dd.tar.gz
prosody-6050cd0da5a2463f2d19466adc5f87357c65a0dd.zip
net.resolvers.basic: Indicate to callback if we have more targets available
-rw-r--r--net/resolvers/basic.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/resolvers/basic.lua b/net/resolvers/basic.lua
index 667015a0..9eb7091c 100644
--- a/net/resolvers/basic.lua
+++ b/net/resolvers/basic.lua
@@ -64,7 +64,7 @@ function methods:next(cb)
return;
end
local next_target = table.remove(self.targets, 1);
- cb(next_target[1], next_target[2], next_target[3], next_target[4]);
+ cb(next_target[1], next_target[2], next_target[3], next_target[4], not not self.targets[1]);
return;
end