CapPow / HerbASAP

An effort to automate image post processing for natural history collections
GNU General Public License v3.0
8 stars 3 forks source link

Can't stop then restart folder monitoring without error. #32

Closed jbest closed 5 years ago

jbest commented 5 years ago

To reproduce: Click "Begin Monitoring Folder" button. Button changes to "Stop Monitoring Folder" Click "Stop Monitoring Folder" button. Button changes to "Begin Monitoring Folder" Click "Begin Monitoring Folder" button. App crashes with following errors: Traceback (most recent call last): File "postProcessing.py", line 237, in toggle_folder_monitoring folder_watcher.run() File "/Users/jbest/Documents/brit-svn/git/autoPostProcessing_caleb/libs/folderMonitor.py", line 97, in run self.observer.start() File "/Users/jbest/Documents/brit-svn/git/autoPostProcessing/env/lib/python3.6/site-packages/watchdog/observers/api.py", line 256, in start super(BaseObserver, self).start() File "/Users/jbest/Documents/brit-svn/git/autoPostProcessing/env/lib/python3.6/site-packages/watchdog/utils/init.py", line 111, in start threading.Thread.start(self) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/threading.py", line 842, in start raise RuntimeError("threads can only be started once") RuntimeError: threads can only be started once Abort trap: 6