mirror of
https://github.com/matrix-construct/construct
synced 2025-03-13 21:10:32 +01:00
ircd::net::dns::resolver: Fix sendq condition after acquiring lock. (Fixes #124)
This commit is contained in:
parent
da0827dbbb
commit
8089bd87ec
1 changed files with 3 additions and 1 deletions
|
@ -263,7 +263,9 @@ ircd::net::dns::resolver::sendq_work()
|
|||
mutex
|
||||
};
|
||||
|
||||
assert(!sendq.empty());
|
||||
if(unlikely(sendq.empty()))
|
||||
return;
|
||||
|
||||
assert(sendq.size() < 65535);
|
||||
assert(sendq.size() <= tags.size());
|
||||
const uint16_t next(sendq.front());
|
||||
|
|
Loading…
Add table
Reference in a new issue