File diff 51fdc7206bc1 → 758f601316d4
accounting/__init__.py
Show inline comments
...
 
@@ -24,13 +24,13 @@ class Ledger:
 
    def locked_process(self):
 
        if self.locked:
 
            raise RuntimeError('The process has already been locked,'
 
                               ' something\'s out of order.')
 

	
 
            # XXX: This code has no purpose in a single-threaded process
 
            timout = 5  # Seconds
 
            timeout = 5  # Seconds
 

	
 
            for i in range(1, timeout + 2):
 
                if i > timeout:
 
                    raise RuntimeError('Ledger process is already locked')
 

	
 
                if not self.locked: