event/MultiSocketMonitor: fix lambda indent
This commit is contained in:
parent
23a3278b4e
commit
45f92f0ef0
|
@ -75,14 +75,14 @@ MultiSocketMonitor::ReplaceSocketList(pollfd *pfds, unsigned n) noexcept
|
||||||
pollfd *const end = pfds + n;
|
pollfd *const end = pfds + n;
|
||||||
|
|
||||||
UpdateSocketList([pfds, end](SocketDescriptor fd) -> unsigned {
|
UpdateSocketList([pfds, end](SocketDescriptor fd) -> unsigned {
|
||||||
auto i = std::find_if(pfds, end, [fd](const struct pollfd &pfd){
|
auto i = std::find_if(pfds, end, [fd](const struct pollfd &pfd){
|
||||||
return pfd.fd == fd.Get();
|
return pfd.fd == fd.Get();
|
||||||
});
|
|
||||||
if (i == end)
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
return std::exchange(i->events, 0);
|
|
||||||
});
|
});
|
||||||
|
if (i == end)
|
||||||
|
return 0;
|
||||||
|
|
||||||
|
return std::exchange(i->events, 0);
|
||||||
|
});
|
||||||
|
|
||||||
for (auto i = pfds; i != end; ++i)
|
for (auto i = pfds; i != end; ++i)
|
||||||
if (i->events != 0)
|
if (i->events != 0)
|
||||||
|
|
Loading…
Reference in New Issue