Commit 619ee1f7 authored by Kevin Seidel's avatar Kevin Seidel
Browse files

Fix disconnection handling

parent fe39e478
......@@ -478,7 +478,8 @@ func (h *HCI) handleDisconnectionComplete(b []byte) error {
return fmt.Errorf("disconnecting an invalid handle %04X", e.ConnectionHandle())
}
close(c.chInPkt)
if c.param.Role() == roleSlave {
if c.param.Role() == roleMaster {
// Re-enable advertising, if it was advertising. Refer to the
// handleLEConnectionComplete() for details.
// This may failed with ErrCommandDisallowed, if the controller
......
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