Commit 44f7f92b authored by Sam Lantinga's avatar Sam Lantinga

Whoops, that's a while loop. :)

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401977
parent 6822a805
......@@ -157,7 +157,7 @@ Cocoa_PumpEvents(_THIS)
NSAutoreleasePool *pool;
pool = [[NSAutoreleasePool alloc] init];
for ( ; [NSApp isRunning]; ) {
while ([NSApp isRunning]) {
NSEvent *event = [NSApp nextEventMatchingMask:NSAnyEventMask untilDate:[NSDate distantPast] inMode:NSDefaultRunLoopMode dequeue:YES ];
if ( event == nil ) {
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment