[longomatch] Add a timeout for the timers disposal



commit 7c67e88284e960f9750b9fc01536b52d5302ffef
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Wed Apr 29 19:37:20 2015 +0200

    Add a timeout for the timers disposal

 LongoMatch.Core/Common/Seeker.cs        |    2 +-
 LongoMatch.Services/PlayerController.cs |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/LongoMatch.Core/Common/Seeker.cs b/LongoMatch.Core/Common/Seeker.cs
index d467260..d670f2e 100644
--- a/LongoMatch.Core/Common/Seeker.cs
+++ b/LongoMatch.Core/Common/Seeker.cs
@@ -36,7 +36,7 @@ namespace LongoMatch.Core.Common
                {
                        if (!disposed) {
                                timer.Dispose (TimerDisposed);
-                               TimerDisposed.WaitOne ();
+                               TimerDisposed.WaitOne (200);
                                TimerDisposed.Dispose ();
                        }
                        disposed = true;
diff --git a/LongoMatch.Services/PlayerController.cs b/LongoMatch.Services/PlayerController.cs
index d770803..04a0dde 100644
--- a/LongoMatch.Services/PlayerController.cs
+++ b/LongoMatch.Services/PlayerController.cs
@@ -231,7 +231,7 @@ namespace LongoMatch.Services
                                IgnoreTicks = true;
                                seeker.Dispose ();
                                timer.Dispose (TimerDisposed);
-                               TimerDisposed.WaitOne ();
+                               TimerDisposed.WaitOne (200);
                                TimerDisposed.Dispose ();
                                player.Error -= HandleError;
                                player.StateChange -= HandleStateChange;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]