pespin submitted this change.

View Change


Approvals: fixeria: Looks good to me, but someone else must approve osmith: Looks good to me, approved Jenkins Builder: Verified
BSSGP_Emulation: expect altstep timeout entry only if timer is running

Should fix the following log message:
BSSGP_Emulation.ttcnpp:1118 Timeout operation on timer g_T1 failed: The timer is not started.

Change-Id: Id7d1b76a6bc1fc2f0f4896c59673c01293b526e9
---
M library/BSSGP_Emulation.ttcnpp
1 file changed, 14 insertions(+), 2 deletions(-)

diff --git a/library/BSSGP_Emulation.ttcnpp b/library/BSSGP_Emulation.ttcnpp
index 1b628b3..d01c7a2 100644
--- a/library/BSSGP_Emulation.ttcnpp
+++ b/library/BSSGP_Emulation.ttcnpp
@@ -1115,10 +1115,10 @@
f_ptp_change_state(BVC_S_BLOCKED);
}
/* Re-transmit BLOCK / UNBLOCK on T1 timeout */
- [not g_t1_waits_for_block_ack] g_T1.timeout {
+ [g_T1.running and not g_t1_waits_for_block_ack] g_T1.timeout {
f_ptp_sendUnblock();
}
- [g_t1_waits_for_block_ack] g_T1.timeout {
+ [g_T1.running and g_t1_waits_for_block_ack] g_T1.timeout {
f_ptp_sendBlock(g_last_block_cause);
}


To view, visit change 35741. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: Id7d1b76a6bc1fc2f0f4896c59673c01293b526e9
Gerrit-Change-Number: 35741
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin@sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy@sysmocom.de>
Gerrit-Reviewer: osmith <osmith@sysmocom.de>
Gerrit-Reviewer: pespin <pespin@sysmocom.de>
Gerrit-MessageType: merged