• Views
  • Iteration Report
  • My Iteration Report
  •  
OMERO.server
  • Login
  • Help/Guide
  • About Trac
  • Preferences
  • Wiki
  • Timeline
  • Roadmap
  • Browse Source
  • View Tickets
  • Search

Context Navigation

  • ← Previous Changeset
  • Next Changeset →

Changeset 4575

Show
Ignore:
Timestamp:
07/09/09 12:51:05 (7 months ago)
Author:
jmoore
Message:

ticket:1391 : Checking for "stop" in busy sleep in Task

Files:
1 modified

  • trunk/components/tools/OmeroPy/src/omero/util/__init__.py (modified) (1 diff)

Legend:

Unmodified
Added
Removed
  • trunk/components/tools/OmeroPy/src/omero/util/__init__.py

    r4429 r4575  
    144144    def sleep(self): 
    145145        start = time.time() 
    146         while (time.time() - start) < self.sleeptime: 
     146        while not self.exit and (time.time() - start) < self.sleeptime: 
    147147            time.sleep(5) 
    148148 

Download in other formats:

  • Unified Diff
  • Zip Archive

Trac Powered

Powered by Trac 0.11.5
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/