Commit ad260293 authored by Kyle Horimoto's avatar Kyle Horimoto Committed by Commit Bot

[CrOS Tether] Remove erroneous DCHECK().

The DCHECK() asserted that the status was ERROR_DETECTED whenever
GetReasonToClose() was called. However, this function is also intended
to be called when connections are closed normally.

Bug: 829083
Change-Id: Iaee6948cf38ef3ee3ddfbde8681ec9a840928662
Reviewed-on: https://chromium-review.googlesource.com/996310Reviewed-by: default avatarJeremy Klein <jlklein@chromium.org>
Commit-Queue: Kyle Horimoto <khorimoto@chromium.org>
Cr-Commit-Position: refs/heads/master@{#548241}
parent 15572b99
...@@ -51,7 +51,6 @@ ReasonForClose BluetoothLowEnergyWeavePacketReceiver::GetReasonForClose() { ...@@ -51,7 +51,6 @@ ReasonForClose BluetoothLowEnergyWeavePacketReceiver::GetReasonForClose() {
} }
ReasonForClose BluetoothLowEnergyWeavePacketReceiver::GetReasonToClose() { ReasonForClose BluetoothLowEnergyWeavePacketReceiver::GetReasonToClose() {
DCHECK(state_ == State::ERROR_DETECTED);
return reason_to_close_; return reason_to_close_;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment