File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -70,11 +70,11 @@ $(LIBFILE):$(LIBOBJS)
7070 ln -sf $(LIBFILE ) $(LIBNAME ) .so
7171
7272
73- src/test/TestXPlaneBeaconListener : $(TESTOBJS )
73+ src/test/TestXPlaneBeaconListener : $(TESTOBJS ) $( LIBFILE )
7474 $(CC ) -L . -o $@ src/test/TestXPlaneBeaconListener.o $(LIBNAME ) .so
7575
7676
77- src/test/TestXPlaneUDPClient : $(TESTOBJS )
77+ src/test/TestXPlaneUDPClient : $(TESTOBJS ) $( LIBFILE )
7878 $(CC ) -L . -o $@ src/test/TestXPlaneUDPClient.o $(LIBNAME ) .so
7979
8080clean :
Original file line number Diff line number Diff line change @@ -151,10 +151,11 @@ XPlaneUDPClient::~XPlaneUDPClient() {
151151
152152 time_t nowTime = time (NULL );
153153
154- while (isRunning && nowTime < time (NULL ) - 5 ) {
154+ while (isRunning && time (NULL ) < nowTime + 5 ) {
155155 if (debug) {
156156 cerr << " waiting for XPlaneUDPClient to stop" << endl;
157157 }
158+ usleep (100000 ); // 10ms
158159 }
159160
160161 if (isRunning) {
You can’t perform that action at this time.
0 commit comments