| Index: components/policy/core/common/remote_commands/remote_commands_queue.cc
|
| diff --git a/components/policy/core/common/remote_commands/remote_commands_queue.cc b/components/policy/core/common/remote_commands/remote_commands_queue.cc
|
| index 803fbca47b573722b6990186d515b8768afe1d5a..8bc37fb61a99fe047c7b5bd543fa00302f24ead9 100644
|
| --- a/components/policy/core/common/remote_commands/remote_commands_queue.cc
|
| +++ b/components/policy/core/common/remote_commands/remote_commands_queue.cc
|
| @@ -27,7 +27,8 @@ RemoteCommandsQueue::RemoteCommandsQueue() : clock_(new base::DefaultClock()) {
|
| RemoteCommandsQueue::~RemoteCommandsQueue() {
|
| while (!incoming_commands_.empty())
|
| incoming_commands_.pop();
|
| - running_command_.reset();
|
| + if (running_command_)
|
| + running_command_->Terminate();
|
| }
|
|
|
| void RemoteCommandsQueue::AddObserver(Observer* observer) {
|
|
|