ObjFW  Diff

Differences From Artifact [76c781112c]:

To Artifact [fcdc461826]:


670
671
672
673
674
675
676
677


678
679
680
681
682
683
684
670
671
672
673
674
675
676

677
678
679
680
681
682
683
684
685







-
+
+








		/* Watch for stream events until the next timer is due */
		if (nextTimer != nil) {
			double timeout = [nextTimer timeIntervalSinceNow];

			if (timeout > 0)
#ifdef OF_HAVE_SOCKETS
				[_streamObserver observeWithTimeout: timeout];
				[_streamObserver
				    observeForTimeInterval: timeout];
#else
				[OFThread sleepForTimeInterval: timeout];
#endif
		} else {
			/*
			 * No more timers: Just watch for streams until we get
			 * an event. If a timer is added by another thread, it