Make profiling mode really enforce singlethreading

A typo was preventing profiling mode to really enable singlethreading
mode. Fixing the unfortunate typo of mine makes it work.

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
Sebastian Spaeth 2011-03-03 13:44:39 +01:00 committed by Nicolas Sebrecht
parent d05162675c
commit 2ab51e6855
2 changed files with 2 additions and 1 deletions

View File

@ -21,6 +21,7 @@ Bug Fixes
* Fix regression (UIBase is no more).
* Make profiling mode really enforce single-threading
Pending for the next major release
==================================

View File

@ -169,7 +169,7 @@ class OfflineImap:
if options.profiledir:
if not options.singlethreading:
logging.warn("Profile mode: Forcing to singlethreaded.")
options.singlethreaded = True
options.singlethreading = True
profiledir = options.profiledir
os.mkdir(profiledir)
threadutil.setprofiledir(profiledir)