diff options
Diffstat (limited to 'mcs/class/corlib/System.Threading/Timer.cs')
-rwxr-xr-x | mcs/class/corlib/System.Threading/Timer.cs | 5 |
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; } |