ObjFW  Diff

Differences From Artifact [31ff560703]:

To Artifact [ce12a725d9]:


361
362
363
364
365
366
367











368

369
370

371
372
373
374
375
376
377
378
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378

379
380

381

382
383
384
385
386
387
388







+
+
+
+
+
+
+
+
+
+
+
-
+

-
+
-







	id target = [[_target retain] autorelease];
	id object1 = [[_object1 retain] autorelease];
	id object2 = [[_object2 retain] autorelease];

	OF_ENSURE(_arguments <= 2);

	if (_repeats && _valid) {
		int missedIntervals =
		    -[_fireDate timeIntervalSinceNow] / _interval;
		of_time_interval_t newFireDate;

		/* In case the clock was changed backwards */
		if (missedIntervals < 0)
			missedIntervals = 0;

		newFireDate = [_fireDate timeIntervalSince1970] +
		    (missedIntervals + 1) * _interval;

		OFDate *old = _fireDate;
		[_fireDate release];
		_fireDate = [[OFDate alloc]
		    initWithTimeIntervalSinceNow: _interval];
		    initWithTimeIntervalSince1970: newFireDate];
		[old release];

		[[OFRunLoop currentRunLoop] addTimer: self];
	} else
		[self invalidate];

#ifdef OF_HAVE_BLOCKS
	if (_block != NULL)