Skip to content

Commit

Permalink
Fix the problem that the server engine is not uninstalled when the se…
Browse files Browse the repository at this point in the history
…rver is released.
  • Loading branch information
zebin-wu authored and aajain-com committed Oct 23, 2021
1 parent eeee1a3 commit fb201f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions HAP/HAPAccessoryServer.c
Original file line number Diff line number Diff line change
Expand Up @@ -284,11 +284,11 @@ void HAPAccessoryServerRelease(HAPAccessoryServerRef* server_) {

HAPMFiHWAuthRelease(&server->mfi);

HAPRawBufferZero(server_, sizeof *server_);

if (server->transports.ip) {
HAPNonnull(server->transports.ip)->serverEngine.uninstall();
}

HAPRawBufferZero(server_, sizeof *server_);
}

HAP_RESULT_USE_CHECK
Expand Down

1 comment on commit fb201f9

@ModestGoblin
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🥇

Please sign in to comment.