diff options
author | Matthew Wild <mwild1@gmail.com> | 2022-03-18 16:13:09 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2022-03-18 16:13:09 +0000 |
commit | 6050cd0da5a2463f2d19466adc5f87357c65a0dd (patch) | |
tree | 28364f12fae9f927b1ef4d21cda2a5fbd3f51fce /net | |
parent | 3c5d7eaef1d3b6d9c93c6ae510317f671da33ceb (diff) | |
download | prosody-6050cd0da5a2463f2d19466adc5f87357c65a0dd.tar.gz prosody-6050cd0da5a2463f2d19466adc5f87357c65a0dd.zip |
net.resolvers.basic: Indicate to callback if we have more targets available
Diffstat (limited to 'net')
-rw-r--r-- | net/resolvers/basic.lua | 2 |
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 |