Loading openflexure_microscope/camera/base.py +2 −3 Original line number Diff line number Diff line Loading @@ -7,6 +7,7 @@ import datetime import logging import threading import gevent from abc import ABCMeta, abstractmethod from collections import OrderedDict Loading Loading @@ -266,9 +267,7 @@ class BaseCamera(metaclass=ABCMeta): if not self.stream_active: # Spawn a greenlet to handle stream # start background frame thread self.thread = threading.Thread(target=self._thread) self.thread.daemon = True self.thread.start() self.thread = gevent.spawn(self._thread) # wait until frames are available logging.info("Waiting for frames") Loading Loading
openflexure_microscope/camera/base.py +2 −3 Original line number Diff line number Diff line Loading @@ -7,6 +7,7 @@ import datetime import logging import threading import gevent from abc import ABCMeta, abstractmethod from collections import OrderedDict Loading Loading @@ -266,9 +267,7 @@ class BaseCamera(metaclass=ABCMeta): if not self.stream_active: # Spawn a greenlet to handle stream # start background frame thread self.thread = threading.Thread(target=self._thread) self.thread.daemon = True self.thread.start() self.thread = gevent.spawn(self._thread) # wait until frames are available logging.info("Waiting for frames") Loading