mirror of
https://gitee.com/openharmony/communication_dsoftbus
synced 2024-11-27 02:40:40 +00:00
commit
64c3ea8845
@ -188,6 +188,9 @@ void P2pV1Processor::WaitingReqResponseState()
|
||||
})
|
||||
.Handle<std::shared_ptr<TimeoutEvent>>([this](std::shared_ptr<TimeoutEvent> &event) {
|
||||
OnWaitReqResponseTimeoutEvent();
|
||||
})
|
||||
.Handle<std::shared_ptr<AuthExceptionEvent>>([this](std::shared_ptr<AuthExceptionEvent> &event) {
|
||||
ProcessAuthExceptionEvent(event);
|
||||
});
|
||||
}
|
||||
|
||||
@ -598,6 +601,17 @@ void P2pV1Processor::ProcessAuthConnEvent(std::shared_ptr<AuthOpenEvent> &event)
|
||||
Terminate();
|
||||
}
|
||||
|
||||
void P2pV1Processor::ProcessAuthExceptionEvent(const std::shared_ptr<AuthExceptionEvent> &event)
|
||||
{
|
||||
CONN_LOGE(CONN_WIFI_DIRECT, "AuthExceptionEvent error=%{public}d", event->error_);
|
||||
if (connectCommand_ != nullptr) {
|
||||
CleanupIfNeed(event->error_, connectCommand_->GetRemoteDeviceId());
|
||||
connectCommand_->OnFailure(static_cast<WifiDirectErrorCode>(event->error_));
|
||||
connectCommand_ = nullptr;
|
||||
}
|
||||
Terminate();
|
||||
}
|
||||
|
||||
void P2pV1Processor::OnWaitReqResponseTimeoutEvent()
|
||||
{
|
||||
CONN_LOGE(CONN_WIFI_DIRECT, "wait connect response timeout");
|
||||
|
@ -76,6 +76,7 @@ private:
|
||||
int ProcessNegotiateCommandCommon(std::shared_ptr<NegotiateCommand> &command);
|
||||
|
||||
void ProcessAuthConnEvent(std::shared_ptr<AuthOpenEvent> &event);
|
||||
void ProcessAuthExceptionEvent(const std::shared_ptr<AuthExceptionEvent> &event);
|
||||
|
||||
void OnWaitReqResponseTimeoutEvent();
|
||||
void OnWaitReuseResponseTimeoutEvent();
|
||||
|
Loading…
Reference in New Issue
Block a user