mirror of
https://gitee.com/openharmony/communication_dsoftbus
synced 2024-11-24 17:29:54 +00:00
commit
d100c3bf77
@ -84,6 +84,7 @@ void P2pConnectState::OnP2pStateChangeEvent(P2pState state)
|
||||
if (state == P2P_STATE_STARTED) {
|
||||
CONN_LOGI(CONN_WIFI_DIRECT, "state is P2P_STATE_STARTED");
|
||||
} else {
|
||||
timer_.Unregister(operation_->timerId_);
|
||||
if (operation_ != nullptr) {
|
||||
result.errorCode_ = SOFTBUS_ERR;
|
||||
operation_->promise_.set_value(result);
|
||||
|
@ -79,6 +79,7 @@ void P2pCreateGroupState::OnP2pStateChangeEvent(P2pState state)
|
||||
if (state == P2P_STATE_STARTED) {
|
||||
CONN_LOGI(CONN_WIFI_DIRECT, "state is P2P_STATE_STARTED");
|
||||
} else {
|
||||
timer_.Unregister(operation_->timerId_);
|
||||
if (operation_ != nullptr) {
|
||||
result.errorCode_ = SOFTBUS_ERR;
|
||||
operation_->promise_.set_value(result);
|
||||
|
@ -78,6 +78,7 @@ void P2pDestroyGroupState::OnP2pStateChangeEvent(P2pState state)
|
||||
if (state == P2P_STATE_STARTED) {
|
||||
CONN_LOGI(CONN_WIFI_DIRECT, "state is P2P_STATE_STARTED");
|
||||
} else {
|
||||
timer_.Unregister(operation_->timerId_);
|
||||
if (operation_ != nullptr) {
|
||||
result.errorCode_ = SOFTBUS_ERR;
|
||||
operation_->promise_.set_value(result);
|
||||
|
Loading…
Reference in New Issue
Block a user