| 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 6234c9261843e766889a9e0e57f8572dfe93a26f..8c0f2b76edb7e778275029a1ff3a62bd9ee631e3 100644
|
| --- a/components/policy/core/common/remote_commands/remote_commands_queue.cc
|
| +++ b/components/policy/core/common/remote_commands/remote_commands_queue.cc
|
| @@ -20,7 +20,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) {
|
|
|