diff options
author | FearlessTobi <thm.frey@gmail.com> | 2022-07-25 19:16:59 +0200 |
---|---|---|
committer | FearlessTobi <thm.frey@gmail.com> | 2022-07-25 21:59:31 +0200 |
commit | a41baaa181f30229d3552caa69135be978c1ddb5 (patch) | |
tree | 999411f1ca76390654d1034c6d0bd2c47c3f101c /src/yuzu/multiplayer/state.cpp | |
parent | 61ce57b5242984c297283de5868ea4938391a911 (diff) |
network: Address review comments
Diffstat (limited to 'src/yuzu/multiplayer/state.cpp')
-rw-r--r-- | src/yuzu/multiplayer/state.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/yuzu/multiplayer/state.cpp b/src/yuzu/multiplayer/state.cpp index 015c59788..4149b5232 100644 --- a/src/yuzu/multiplayer/state.cpp +++ b/src/yuzu/multiplayer/state.cpp @@ -74,14 +74,18 @@ MultiplayerState::~MultiplayerState() { } void MultiplayerState::Close() { - if (host_room) + if (host_room) { host_room->close(); - if (direct_connect) + } + if (direct_connect) { direct_connect->close(); - if (client_room) + } + if (client_room) { client_room->close(); - if (lobby) + } + if (lobby) { lobby->close(); + } } void MultiplayerState::retranslateUi() { |