From eff2634b32e698a5beee1dc94a0de71952944b66 Mon Sep 17 00:00:00 2001 From: rmcrackan Date: Tue, 21 Jun 2022 20:54:38 -0400 Subject: [PATCH 1/2] linux + WINE link --- Documentation/Advanced.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/Advanced.md b/Documentation/Advanced.md index 66117b29..b7954f7d 100644 --- a/Documentation/Advanced.md +++ b/Documentation/Advanced.md @@ -27,7 +27,7 @@ To make upgrades and reinstalls easier, Libation separates all of its responsibi ### Linux and Mac -Although Libation only currently officially supports Windows, some users have had success with WINE. ([Linux](https://github.com/rmcrackan/Libation/issues/28#issuecomment-890594158), [OSX Crossover and WINE](https://github.com/rmcrackan/Libation/issues/150#issuecomment-1004918592)) +Although Libation only currently officially supports Windows, some users have had success with WINE. ([Linux](https://github.com/rmcrackan/Libation/issues/28#issuecomment-890594158), [OSX Crossover and WINE](https://github.com/rmcrackan/Libation/issues/150#issuecomment-1004918592), [Linux and WINE](https://github.com/rmcrackan/Libation/issues/28#issuecomment-1161111014)) ### Settings From ba722487d8c7be977d8246e152131e9c1d829b2f Mon Sep 17 00:00:00 2001 From: Robert McRackan Date: Tue, 21 Jun 2022 21:08:49 -0400 Subject: [PATCH 2/2] Non-null disposed BlockingCollection can throw exception --- Source/FileManager/BackgroundFileSystem.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Source/FileManager/BackgroundFileSystem.cs b/Source/FileManager/BackgroundFileSystem.cs index 4f68003d..f3f9a747 100644 --- a/Source/FileManager/BackgroundFileSystem.cs +++ b/Source/FileManager/BackgroundFileSystem.cs @@ -79,8 +79,13 @@ namespace FileManager //Stop raising events fileSystemWatcher?.Dispose(); - //Calling CompleteAdding() will cause background scanner to terminate. - directoryChangesEvents?.CompleteAdding(); + try + { + //Calling CompleteAdding() will cause background scanner to terminate. + directoryChangesEvents?.CompleteAdding(); + } + // if directoryChangesEvents is non-null and isDisposed, this exception is thrown. there's no other way to check >:( + catch (ObjectDisposedException) { } //Wait for background scanner to terminate before reinitializing. backgroundScanner?.Wait();