Skip to content

πŸ™Œ OpenHands: AI-Driven Development

Fix init order with threading (#3935)

Engel Nyste3be71f52392
diff --git a/openhands/runtime/client/runtime.py b/openhands/runtime/client/runtime.py
index 9d8c9c6f16..d1bba56110 100644
--- a/openhands/runtime/client/runtime.py
+++ b/openhands/runtime/client/runtime.py
@@ -51,11 +51,11 @@ class LogBuffer:
self.buffer: list[str] = []
self.lock = threading.Lock()
+ self._stop_event = threading.Event()
self.log_generator = container.logs(stream=True, follow=True)
self.log_stream_thread = threading.Thread(target=self.stream_logs)
self.log_stream_thread.daemon = True
self.log_stream_thread.start()
- self._stop_event = threading.Event()
def append(self, log_line: str):
with self.lock: