Merge pull request #243 from facebook/fix_100p

[events] Fix SCNetwork runloop thrashing
This commit is contained in:
Teddy Reed 2014-10-25 16:41:57 -07:00
commit 2346fa00d5

View File

@ -140,6 +140,9 @@ Status SCNetworkEventPublisher::run() {
// Start the run loop, it may be removed with a tearDown.
CFRunLoopRun();
// Do not expect the run loop to exit often, if so, add artificial latency.
::sleep(1);
return Status(0, "OK");
}
};