Skip to content

Commit

Permalink
- fixed small lockup on FileSystemWatcher dispose
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitarCC committed Nov 30, 2016
1 parent 76eb943 commit d998335
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Shell/ShellViewEx.cs
Expand Up @@ -3100,7 +3100,7 @@ public partial class ShellView : UserControl {

if (destination.IsFileSystem) {
if (this._FsWatcher != null) {
this._FsWatcher.Dispose();
this.BeginInvoke((MethodInvoker) (() => this._FsWatcher.Dispose()));
this._FsWatcher = new FileSystemWatcher(@destination.ParsingName);
//this._FsWatcher.InternalBufferSize = 64 * 1024 * 1024;
this._FsWatcher.Changed += (sender, args) => {
Expand Down

0 comments on commit d998335

Please sign in to comment.