Skip to content

Commit 86b8b23

Browse files
committed
bug fix for case when connection to TP couldn't be made immediately and there was a specific table subscription list. The CTP was failing to initialise
1 parent a0a33b3 commit 86b8b23

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

code/processes/chainedtp.q

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,8 @@ initialise:{
120120
/- subscribe to the tickerplant
121121
.ctp.subscribe[];
122122
/- add subscribed table schemas to .ctp.tableschemas, used in cleartables
123-
.ctp.tableschemas:{x!(0#)@'value@'x} (),$[any null .ctp.subscribeto;tables[`.];.ctp.subscribeto]
123+
if[not notpconnected[];
124+
.ctp.tableschemas:{x!(0#)@'value@'x} (),$[any null .ctp.subscribeto;tables[`.];.ctp.subscribeto]]
124125
}
125126

126127
/- returns true if tickerplant is not connected

0 commit comments

Comments
 (0)