mirror of
https://github.com/outbackdingo/ports.git
synced 2026-02-05 08:28:03 +00:00
26 lines
981 B
Diff
26 lines
981 B
Diff
Patch-Source: https://svn.filezilla-project.org/filezilla/FileZilla3/trunk/src/engine/storj/storjcontrolsocket.cpp?view=patch&r1=10966&r2=10965&pathrev=10966
|
|
--
|
|
--- a/src/engine/storj/storjcontrolsocket.cpp 2023/05/16 09:15:51 10965
|
|
+++ b/src/engine/storj/storjcontrolsocket.cpp 2023/05/16 09:26:24 10966
|
|
@@ -336,17 +336,14 @@
|
|
if (input_thread_) {
|
|
input_thread_.reset();
|
|
|
|
- auto threadEventsFilter = [&](fz::event_loop::Events::value_type const& ev) -> bool {
|
|
- if (ev.first != this) {
|
|
- return false;
|
|
- }
|
|
- else if (ev.second->derived_type() == CStorjEvent::type() || ev.second->derived_type() == StorjTerminateEvent::type()) {
|
|
+ auto threadEventsFilter = [](fz::event_base const& ev) -> bool {
|
|
+ if (ev.derived_type() == CStorjEvent::type() || ev.derived_type() == StorjTerminateEvent::type()) {
|
|
return true;
|
|
}
|
|
return false;
|
|
};
|
|
|
|
- event_loop_.filter_events(threadEventsFilter);
|
|
+ filter_events(threadEventsFilter);
|
|
}
|
|
process_.reset();
|
|
|