// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System.Collections.Generic;
using System.Collections.Concurrent;
try {
Action cb;
- for (int id = int.MinValue + 1; id <= currId; id++) {
+ for (int id = currId; id != int.MinValue; id--) {
if (!callbacks.TryRemove (new CancellationTokenRegistration (id, this), out cb))
continue;
if (cb == null)