[yt-svn] commit/yt: xarthisius: Merged in MatthewTurk/yt (pull	request #1208)
    commits-noreply at bitbucket.org 
    commits-noreply at bitbucket.org
       
    Tue Sep 16 19:17:48 PDT 2014
    
    
  
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/commits/c7ff1e9f7257/
Changeset:   c7ff1e9f7257
Branch:      yt
User:        xarthisius
Date:        2014-09-17 02:17:38+00:00
Summary:     Merged in MatthewTurk/yt (pull request #1208)
[BUGFIX] Make sure we can quit out of the memory checker.
Affected #:  1 file
diff -r 6f0db65e21bcabd8283cadb52e30b6c1ed9a4afc -r c7ff1e9f725774c2a2cdc757755ada9ec752386a yt/funcs.py
--- a/yt/funcs.py
+++ b/yt/funcs.py
@@ -732,8 +732,11 @@
     e = threading.Event()
     mem_check = MemoryChecker(e, interval)
     mem_check.start()
-    yield
-    e.set()
+    try:
+        yield
+    finally:
+        e.set()
+
 
 def deprecated_class(cls):
     @wraps(cls)
Repository URL: https://bitbucket.org/yt_analysis/yt/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
    
    
More information about the yt-svn
mailing list