[gcompris] electric: fixed a simulation issue. there was a missing recalculation when a component blows up.
- From: Bruno Coudoin <bcoudoin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gcompris] electric: fixed a simulation issue. there was a missing recalculation when a component blows up.
- Date: Mon, 7 May 2012 15:57:36 +0000 (UTC)
commit 00d1efd8b7d272c2732f4d07ab7a6dd0efbc945c
Author: Bruno Coudoin <bruno coudoin free fr>
Date: Sat May 5 16:57:53 2012 +0200
electric: fixed a simulation issue. there was a missing recalculation when a component blows up.
src/electric-activity/electric.py | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/electric-activity/electric.py b/src/electric-activity/electric.py
index ee62245..0657afb 100644
--- a/src/electric-activity/electric.py
+++ b/src/electric-activity/electric.py
@@ -318,6 +318,7 @@ class Gcompris_electric:
self.gnucap_timer = 0
return
+ self.gnucap_timer = 0
connected = False
for component in self.components:
if component.is_connected():
@@ -384,7 +385,6 @@ class Gcompris_electric:
results = output.close()
if results:
print('Failed to run gnugap with error ', results)
- self.gnucap_timer = 0
return
values = []
@@ -429,7 +429,6 @@ class Gcompris_electric:
if not debug: os.remove(filename)
- self.gnucap_timer = 0
# Convert a gnucap value back in a regular number
# Return a float value
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]