Skip to content

Commit

Permalink
Set check timer to lower priority.
Browse files Browse the repository at this point in the history
  • Loading branch information
friedelwolff committed Mar 2, 2015
1 parent d2384f2 commit b1847a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions virtaal/controllers/checkscontroller.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2010-2011 Zuza Software Foundation
# Copyright 2015 F Wolff
#
# This file is part of Virtaal.
#
Expand All @@ -19,7 +19,7 @@
# along with this program; if not, see <http://www.gnu.org/licenses/>.

import logging
from gobject import SIGNAL_RUN_FIRST, timeout_add
from gobject import SIGNAL_RUN_FIRST, timeout_add, PRIORITY_LOW

from virtaal.common import GObjectWrapper

Expand Down Expand Up @@ -207,7 +207,7 @@ def _start_check_timer(self):
# haven't changed units yet, probably strange timing issue
return
self._check_timer_active = True
timeout_add(self.CHECK_TIMEOUT, self._check_timer_expired, self.last_unit)
timeout_add(self.CHECK_TIMEOUT, self._check_timer_expired, self.last_unit, priority=PRIORITY_LOW)

def get_check_name(self, check):
"""Return the human readable form of the given check name."""
Expand Down

0 comments on commit b1847a8

Please sign in to comment.