odwdinc / Python-SimConnect

Python interface for MSFS2020 SimConnect.dll

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Infinite loop on sim CTD

bchen16 opened this issue · comments

	def _run(self):
		while self.quit == 0:
			try:
				self.dll.CallDispatch(self.hSimConnect, self.my_dispatch_proc_rd, None)
				time.sleep(.002)
			except OSError as err:
        			print("OS error: {0}".format(err))

Line 177 of SimConnect.py would cause infinite loop if sim crashed to desktop.