diff options
Diffstat (limited to 'pylog/onaplogging/marker')
-rw-r--r-- | pylog/onaplogging/marker/markerFactory.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pylog/onaplogging/marker/markerFactory.py b/pylog/onaplogging/marker/markerFactory.py index deb9566..e7b00b9 100644 --- a/pylog/onaplogging/marker/markerFactory.py +++ b/pylog/onaplogging/marker/markerFactory.py @@ -51,12 +51,12 @@ class MarkerFactory(IMarkerFactory): if marker_name is None: raise ValueError("not empty") + lock.acquire() marker = self._marker_map.get(marker_name, None) if marker is None: - lock.acquire() marker = BaseMarker(name=marker_name) self._marker_map[marker_name] = marker - lock.release() + lock.release() return marker |