guodong 1 year ago
parent
commit
297dc6918c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      GameClient/Assets/Game/HotUpdate/Sound/MusicManager.cs

+ 2 - 2
GameClient/Assets/Game/HotUpdate/Sound/MusicManager.cs

@@ -101,8 +101,8 @@ namespace GFGGame
         }
         public void Stop()
         {
-            handle.Release();
-            player.Stop();
+            handle?.Release();
+            player?.Stop();
         }
     }
 }