IPA_Emulation: Don't send events to unconnected ports
diff --git a/library/IPA_Emulation.ttcn b/library/IPA_Emulation.ttcn
index 6af572c..5450031 100644
--- a/library/IPA_Emulation.ttcn
+++ b/library/IPA_Emulation.ttcn
@@ -191,7 +191,12 @@
}
private function f_send_IPA_EVT(template ASP_IPA_Event evt) runs on IPA_Emulation_CT {
- IPA_RSL_PORT.send(evt);
+ if (IPA_RSL_PORT.checkstate("Connected")) {
+ IPA_RSL_PORT.send(evt);
+ }
+ if (IPA_CTRL_PORT.checkstate("Connected")) {
+ IPA_CTRL_PORT.send(evt);
+ }
/* FIXME: to other ports */
}