Browse Source

[2855] Move code out of lock region

Mukund Sivaraman 12 years ago
parent
commit
1949be3727
1 changed files with 6 additions and 6 deletions
  1. 6 6
      src/lib/python/isc/memmgr/builder.py

+ 6 - 6
src/lib/python/isc/memmgr/builder.py

@@ -92,9 +92,9 @@ class MemorySegmentBuilder:
                         # queue.
                         # queue.
                         with self._lock:
                         with self._lock:
                             self._response_queue.append(('bad_command',))
                             self._response_queue.append(('bad_command',))
-                            # In this case, we do not notify the main
-                            # thread about a response on the socket, as
-                            # we quit the main loop here anyway (and any
-                            # enclosing thread).
-                            self._shutdown = True
-                            break
+                        # In this case, we do not notify the main
+                        # thread about a response on the socket, as
+                        # we quit the main loop here anyway (and any
+                        # enclosing thread).
+                        self._shutdown = True
+                        break