Skip to content

Commit

Permalink
Merge pull request #592 from ao-org/FixKick2500
Browse files Browse the repository at this point in the history
Fix Server Kick
  • Loading branch information
RecoX authored May 25, 2024
2 parents c80c1f6 + 54e21ef commit b8db373
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Codigo/modNetwork.bas
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ On Error GoTo Kick_ErrHandler:
End If

Call Server.Flush(Connection)
Call Server.Kick(Connection)
Call Server.Kick(Connection, True)
Exit Sub

Kick_ErrHandler:
Expand Down Expand Up @@ -259,7 +259,7 @@ On Error GoTo ForcedClose_Err:
100 UserList(UserIndex).ConnectionDetails.ConnIDValida = False
102 UserList(UserIndex).ConnectionDetails.ConnID = 0
104 Call Server.Flush(Connection)
106 Call Server.Kick(Connection)
106 Call Server.Kick(Connection, True)
108 Call ClearUserRef(Mapping(Connection).UserRef)
110 Call IncreaseVersionId(userIndex)
Exit Sub
Expand All @@ -270,7 +270,7 @@ End Sub
Public Sub KickConnection(Connection As Long)
On Error GoTo ForcedClose_Err:
104 Call Server.Flush(Connection)
106 Call Server.Kick(Connection)
106 Call Server.Kick(Connection, True)
108 Call ClearConnection(Connection)
110 If PendingConnections.Exists(Connection) Then
112 Call PendingConnections.Remove(Connection)
Expand Down

0 comments on commit b8db373

Please sign in to comment.