Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
SHOEGAZEssb committed Dec 25, 2024
1 parent c309c22 commit c1f5fd1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,11 @@ public override void Disconnect()
_automation?.Dispose();
_automation = null;
_currentSong = null;
CountedSeconds = 0;
CurrentTrackScrobbled = false;
IsConnected = false;
_discordClient.ClearPresence();
UpdateCurrentTrackInfo();
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,8 @@ public override void Disconnect()
CountedSeconds = 0;
CurrentTrackScrobbled = false;
IsConnected = false;
UpdateCurrentTrackInfo();
_discordClient.ClearPresence();
_discordClient.Dispose();
UpdateCurrentTrackInfo();
}

/// <summary>
Expand Down

0 comments on commit c1f5fd1

Please sign in to comment.