Skip to content

Commit

Permalink
Fix logging dir which can't be deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
Sella-GH committed Mar 17, 2024
1 parent 60381c2 commit f249349
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ internal static async Task<bool> StopLavalinkAsync()
await LavalinkProcess.WaitForExitAsync();
LavalinkProcess.Dispose();

await Task.Delay(1000);

string path = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Modules", "MusicStreaming", "Files", "logs");
if (MusicStreamingSettings.DeleteLavalinkLogs && Directory.Exists(path))
Directory.Delete(path, true);
Expand Down

0 comments on commit f249349

Please sign in to comment.