Skip to content

Commit

Permalink
fix: fix #1610
Browse files Browse the repository at this point in the history
  • Loading branch information
Dofes committed Jan 8, 2025
1 parent 8858ad1 commit ffc40f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src-server/ll/core/form/FormHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,9 @@ bool handleFormPacket(
if (it == formHandlers.end()) {
return false;
}
it->second->handle(player, std::move(data), cancelReason);
auto handler = std::move(it->second);
formHandlers.erase(it);
handler->handle(player, std::move(data), cancelReason);
return true;
}

Expand Down

0 comments on commit ffc40f9

Please sign in to comment.