mirror of
https://github.com/outbackdingo/ports.git
synced 2026-01-27 10:20:12 +00:00
26 lines
963 B
Diff
26 lines
963 B
Diff
Patch-Source: https://svn.filezilla-project.org/filezilla/FileZilla3/trunk/src/engine/sftp/sftpcontrolsocket.cpp?view=patch&r1=10966&r2=10965&pathrev=10966
|
|
--
|
|
--- a/src/engine/sftp/sftpcontrolsocket.cpp 2023/05/16 09:15:51 10965
|
|
+++ b/src/engine/sftp/sftpcontrolsocket.cpp 2023/05/16 09:26:24 10966
|
|
@@ -511,17 +511,14 @@
|
|
if (input_parser_) {
|
|
input_parser_.reset();
|
|
|
|
- auto threadEventsFilter = [&](fz::event_loop::Events::value_type const& ev) -> bool {
|
|
- if (ev.first != this) {
|
|
- return false;
|
|
- }
|
|
- else if (ev.second->derived_type() == CSftpEvent::type() || ev.second->derived_type() == CSftpListEvent::type()) {
|
|
+ auto threadEventsFilter = [](fz::event_base const& ev) -> bool {
|
|
+ if (ev.derived_type() == CSftpEvent::type() || ev.derived_type() == CSftpListEvent::type()) {
|
|
return true;
|
|
}
|
|
return false;
|
|
};
|
|
|
|
- event_loop_.filter_events(threadEventsFilter);
|
|
+ filter_events(threadEventsFilter);
|
|
}
|
|
process_.reset();
|
|
|