Skip to content

Commit

Permalink
Fix Server Kick
Browse files Browse the repository at this point in the history
Se aplicaron cambios en los parametros de la definicion Kick
  • Loading branch information
plusin committed May 25, 2024
1 parent c80c1f6 commit 54e21ef
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 54e21ef

Please sign in to comment.