OSDN Git Service

Check before handle next command
authorChris Manton <cmanton@google.com>
Mon, 11 Nov 2019 19:53:33 +0000 (11:53 -0800)
committerChris Manton <cmanton@google.com>
Mon, 11 Nov 2019 23:28:07 +0000 (15:28 -0800)
Bug: 144171652
Test: Run CtsVerifier in Gd mode

Change-Id: Id72b000e7e34ce9b99191b010e3898f27906a862

gd/l2cap/classic/internal/signalling_manager.cc

index 47792b0..dbf9c3c 100644 (file)
@@ -180,7 +180,6 @@ void ClassicSignallingManager::OnConnectionResponse(SignalId signal_id, Cid remo
   }
   alarm_.Cancel();
   SendConfigurationRequest(remote_cid, {});
-  handle_send_next_command();
 }
 
 void ClassicSignallingManager::OnConfigurationRequest(SignalId signal_id, Cid cid, Continuation is_continuation,
@@ -193,7 +192,6 @@ void ClassicSignallingManager::OnConfigurationRequest(SignalId signal_id, Cid ci
   auto response = ConfigurationResponseBuilder::Create(signal_id.Value(), channel->GetRemoteCid(), is_continuation,
                                                        ConfigurationResponseResult::SUCCESS, {});
   enqueue_buffer_->Enqueue(std::move(response), handler_);
-  handle_send_next_command();
   channel->SetIncomingConfigurationStatus(DynamicChannelImpl::ConfigurationStatus::CONFIGURED);
   if (channel->GetOutgoingConfigurationStatus() == DynamicChannelImpl::ConfigurationStatus::CONFIGURED) {
     std::unique_ptr<DynamicChannel> user_channel = std::make_unique<DynamicChannel>(channel, handler_);