Fix in EtwListener.Dispose() to return after OnComplete is called on the observer

This commit is contained in:
georgis 2014-03-14 15:47:51 -07:00
Родитель b44091452b
Коммит f514c2dc7a
2 изменённых файлов: 6 добавлений и 2 удалений

Просмотреть файл

@ -5,5 +5,5 @@ using System.Reflection;
[assembly: AssemblyCompany("MS Open Tech")]
[assembly: AssemblyProduct("Tx (LINQ to Logs and Traces)")]
[assembly: AssemblyCopyright("Copyright © MS Open Tech 2012")]
[assembly: AssemblyVersion("1.0.40311.0")]
[assembly: AssemblyFileVersion("1.0.40311.0")]
[assembly: AssemblyVersion("1.0.40314.0")]
[assembly: AssemblyFileVersion("1.0.40314.0")]

Просмотреть файл

@ -53,6 +53,10 @@ namespace Tx.Windows
{
_disposed = true;
EtwNativeMethods.CloseTrace(_handle);
// the above causes EtwNativeMethods.OpenTrace to return sucessfuly
// and the thread which invokes the callbacks to finish
_thread.Join();
}
}