diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2018-12-16 20:28:02 -0500 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2018-12-16 20:28:02 -0500 |
commit | 22297e2ee41568b305c164cd54b5d48e92046eca (patch) | |
tree | 7d524497d28fd6f5226e4866575a19193e13c4fb /src/SMAPI/Framework/SGame.cs | |
parent | 8dd94ac7f1fc1b77508b1140787c91413cbb817a (diff) | |
download | SMAPI-22297e2ee41568b305c164cd54b5d48e92046eca.tar.gz SMAPI-22297e2ee41568b305c164cd54b5d48e92046eca.tar.bz2 SMAPI-22297e2ee41568b305c164cd54b5d48e92046eca.zip |
fix host peer not cleared when a multiplayer session ends
Diffstat (limited to 'src/SMAPI/Framework/SGame.cs')
-rw-r--r-- | src/SMAPI/Framework/SGame.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SMAPI/Framework/SGame.cs b/src/SMAPI/Framework/SGame.cs index 4d790d9f..d515d3ad 100644 --- a/src/SMAPI/Framework/SGame.cs +++ b/src/SMAPI/Framework/SGame.cs @@ -217,7 +217,7 @@ namespace StardewModdingAPI.Framework private void OnReturnedToTitle() { this.Monitor.Log("Context: returned to title", LogLevel.Trace); - this.Multiplayer.Peers.Clear(); + this.Multiplayer.CleanupOnMultiplayerExit(); this.Events.ReturnedToTitle.RaiseEmpty(); #if !SMAPI_3_0_STRICT this.Events.Legacy_AfterReturnToTitle.Raise(); |