Merge "adb: properly erase destroyed jdwp_trackers." am: e02eba8fd2
am: b0e8bbfc99
am: 6c54561d1e
Change-Id: I1a7572937842cf8a80a518e61681c4c88c7285f7
This commit is contained in:
commit
d90f42943e
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue