commit | 0277db478d0e24b23b1637c0323842bf3e185d87 | [log] [tgz] |
---|---|---|
author | Shreyas Basarge <snb@google.com> | Thu Feb 16 00:56:59 2017 +0000 |
committer | Shreyas Basarge <snb@google.com> | Thu Feb 16 14:16:14 2017 +0000 |
tree | 21e2c9d350c385bc1987f58a4ecfd8cf1858adf0 | |
parent | 2c02bd1cf08d54baceac5a44ef64a2bc8f2e1e4b [diff] |
Better iteration over mCurrentOperations in cancelBackups handleCancel was being called on an operation while we are iterating over all operations. This can cause issues if handleCancel modifies the array containing all operations. Test: Run cancelBackup GTS tests. Change-Id: If3fbe7b5d9e61aa870f8f6e0dd1654e735c0c5b8