lock execution thread before exiting (#935)
This commit is contained in:
		@@ -524,6 +524,7 @@ void stopProgram() {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
extern "C" void target_reset() {
 | 
					extern "C" void target_reset() {
 | 
				
			||||||
 | 
					    pthread_mutex_trylock(&execMutex);
 | 
				
			||||||
    stopMotors();
 | 
					    stopMotors();
 | 
				
			||||||
    stopProgram();
 | 
					    stopProgram();
 | 
				
			||||||
    if (lmsPid)
 | 
					    if (lmsPid)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user