Author: Lars Wassermann <[email protected]>
Branch: 
Changeset: r478:d661709c25eb
Date: 2013-06-26 12:52 +0200
http://bitbucket.org/pypy/lang-smalltalk/changeset/d661709c25eb/

Log:    fixed a bug when suspending an already suspended process

diff --git a/spyvm/wrapper.py b/spyvm/wrapper.py
--- a/spyvm/wrapper.py
+++ b/spyvm/wrapper.py
@@ -108,9 +108,10 @@
             self.store_suspended_context(w_current_frame)
             return ProcessWrapper(self.space, w_process).activate()
         else:
-            process_list = ProcessListWrapper(self.space, self.my_list())
-            process_list.remove(self._w_self)
-            self.store_my_list(self.space.w_nil)
+            if self.my_list() is not self.space.w_nil:
+                process_list = ProcessListWrapper(self.space, self.my_list())
+                process_list.remove(self._w_self)
+                self.store_my_list(self.space.w_nil)
             return w_current_frame
 
 class LinkedListWrapper(Wrapper):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to