Showing
1 changed file
with
9 additions
and
7 deletions
... | ... | @@ -115,14 +115,16 @@ export class TelemetryWebsocketService implements TelemetryService { |
115 | 115 | } |
116 | 116 | |
117 | 117 | public update(subscriber: TelemetrySubscriber) { |
118 | - subscriber.subscriptionCommands.forEach( | |
119 | - (subscriptionCommand) => { | |
120 | - if (subscriptionCommand.cmdId && subscriptionCommand instanceof EntityDataCmd) { | |
121 | - this.cmdsWrapper.entityDataCmds.push(subscriptionCommand); | |
118 | + if (!this.isReconnect) { | |
119 | + subscriber.subscriptionCommands.forEach( | |
120 | + (subscriptionCommand) => { | |
121 | + if (subscriptionCommand.cmdId && subscriptionCommand instanceof EntityDataCmd) { | |
122 | + this.cmdsWrapper.entityDataCmds.push(subscriptionCommand); | |
123 | + } | |
122 | 124 | } |
123 | - } | |
124 | - ); | |
125 | - this.publishCommands(); | |
125 | + ); | |
126 | + this.publishCommands(); | |
127 | + } | |
126 | 128 | } |
127 | 129 | |
128 | 130 | public unsubscribe(subscriber: TelemetrySubscriber) { | ... | ... |