Skip to content

Commit

Permalink
[ecs] Destroy VisibleDialog immediately after first trigger (#434)
Browse files Browse the repository at this point in the history
  • Loading branch information
duydang2311 authored Oct 15, 2023
1 parent 1c080f2 commit c09a54e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/SampSharp.Entities/SAMP/Dialogs/DialogSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ private void OnPlayerDisconnect(VisibleDialog player, DisconnectReason _)
{
player.ResponseReceived = true;
player.Handler(new DialogResult(DialogResponse.Disconnected, 0, null));
player.Destroy();
}

[Event]
Expand Down

0 comments on commit c09a54e

Please sign in to comment.