Skip to content

Commit

Permalink
fix: client being disconnected twice (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lymdun committed Mar 29, 2020
1 parent 2a42838 commit 36bb3a2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
4 changes: 0 additions & 4 deletions Assets/Mirror/Runtime/LocalConnections.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,6 @@ internal void DisconnectInternal()
// set not ready and handle client disconnect in any case
// (might be client or host mode here)
isReady = false;

// TODO: this does not work if there is no player yet
if (identity != null)
identity.client.HandleClientDisconnect();
}

/// <summary>
Expand Down
3 changes: 0 additions & 3 deletions Assets/Mirror/Runtime/NetworkConnectionToServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ public override void Disconnect()
// set not ready and handle client disconnect in any case
// (might be client or host mode here)
isReady = false;
// TODO: This does not work if there is no player yet
if (identity != null)
identity.client.HandleClientDisconnect();
Transport.activeTransport.ClientDisconnect();
}
}
Expand Down

0 comments on commit 36bb3a2

Please sign in to comment.