diff --git a/DMX-2.0/SequenceurMacro.cs b/DMX-2.0/SequenceurMacro.cs index 9e29526..4b13ff2 100644 --- a/DMX-2.0/SequenceurMacro.cs +++ b/DMX-2.0/SequenceurMacro.cs @@ -356,10 +356,8 @@ namespace DMX2 } } - if (topPresent) { - if (timeStamp > topSuivant) { + while (topPresent && (timeStamp >= topSuivant)) { LigneSuivante (); - } } } finally { Monitor.Exit (this); diff --git a/DMX-2.0/SequenceurMidi.cs b/DMX-2.0/SequenceurMidi.cs index a5ac1c8..1530ab2 100644 --- a/DMX-2.0/SequenceurMidi.cs +++ b/DMX-2.0/SequenceurMidi.cs @@ -208,10 +208,8 @@ namespace DMX2 if (Monitor.TryEnter (this)) { try { - if (topPresent) { - if (timeStamp > topSuivant) { + while (topPresent &&(timeStamp >= topSuivant)) { LigneSuivante (); - } } } finally { Monitor.Exit (this); diff --git a/DMX-2.0/SequenceurOSC.cs b/DMX-2.0/SequenceurOSC.cs index 5bf8ab6..243f6f5 100644 --- a/DMX-2.0/SequenceurOSC.cs +++ b/DMX-2.0/SequenceurOSC.cs @@ -208,10 +208,8 @@ namespace DMX2 if (Monitor.TryEnter (this)) { try { - if (topPresent) { - if (timeStamp > topSuivant) { + while (topPresent&&(timeStamp >= topSuivant)) { LigneSuivante (); - } } } finally { Monitor.Exit (this);