Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/class/corlib/System.Threading/Timer.cs')
-rwxr-xr-xmcs/class/corlib/System.Threading/Timer.cs5
1 files changed, 2 insertions, 3 deletions
diff --git a/mcs/class/corlib/System.Threading/Timer.cs b/mcs/class/corlib/System.Threading/Timer.cs
index 1675a5a4be7..164c60ef2ca 100755
--- a/mcs/class/corlib/System.Threading/Timer.cs
+++ b/mcs/class/corlib/System.Threading/Timer.cs
@@ -195,11 +195,10 @@ namespace System.Threading
if (runner == null)
return false;
-
- start_event.Reset ();
- runner.Abort ();
+
runner.DueTime = dueTime;
runner.Period = period;
+ runner.Abort ();
start_event.Set ();
return true;
}