Use new RunLoop mechanism.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1228 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Andrew McCallum 1996-03-19 20:51:47 +00:00
parent 29e7f82a7e
commit e9e3b2c4a8

View file

@ -5,6 +5,8 @@
#include <objects/Coder.h>
#include <objects/BinaryCStream.h>
#include <objects/String.h>
#include <objects/RunLoop.h>
#include <Foundation/NSDate.h>
#include <assert.h>
#include "server.h"
@ -130,7 +132,8 @@ int main(int argc, char *argv[])
printf("repeated triangle %d object proxy's hash is 0x%x\n",
j, (unsigned)[remote_peer_obj hash]);
}
[c runConnectionWithTimeout:1500];
[RunLoop runUntilDate: [NSDate dateWithTimeIntervalSinceNow: 20 * 60]];
[c invalidate];
exit(0);