Skip to content

Commit

Permalink
some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmadbky committed Aug 10, 2024
1 parent fe3f489 commit c3e7d30
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Scripts/Libs/ahmad3/InnerEventAPI.Script.txt
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ Boolean Loop() {
case C::C_Request_EventHandle: {
declare Types::K_EventEdition[] EventEditions;
EventEditions.fromjson(Request.Result);

declare Text Handle = TL::Split("/", ReqAttr.Route)[1];

G_PendingEventHandleReqs.add(K_PendingEventHandleReq {
Expand Down Expand Up @@ -210,7 +210,6 @@ Boolean Loop() {
// not playable, because it doesn't exist, has expired, or is not yet released.
if (!G_Events.existskey(Req.Handle)) {
PendingEventsToDelete.add(Req.Handle);
ReqToDelete.add(Req.ReqId);
G_HasFailed = True;
G_Failure.Err.message = "Event was not found or has expired (handle: `" ^ Req.Handle ^ "`)";
continue;
Expand All @@ -221,6 +220,8 @@ Boolean Loop() {
}
PendingEventsToDelete.add(Req.Handle);
}

G_PendingEventHandleReqs.clear();
}

foreach (ReqId in ReqToDelete) {
Expand Down

0 comments on commit c3e7d30

Please sign in to comment.