Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e02eba8f authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "adb: properly erase destroyed jdwp_trackers."

parents ce7ee088 6def9bd6
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -571,7 +571,8 @@ static void jdwp_tracker_close(asocket* s) {
    remove_socket(s);

    auto pred = [s](const auto& tracker) { return tracker.get() == s; };
    std::remove_if(_jdwp_trackers.begin(), _jdwp_trackers.end(), pred);
    _jdwp_trackers.erase(std::remove_if(_jdwp_trackers.begin(), _jdwp_trackers.end(), pred),
                         _jdwp_trackers.end());
}

static void jdwp_tracker_ready(asocket* s) {