aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSebastien Douheret <sebastien.douheret@iot.bzh>2018-07-25 15:52:17 +0200
committerSebastien Douheret <sebastien.douheret@iot.bzh>2018-07-25 15:52:17 +0200
commit1d2f02988debfe4fe3891d82b2de23d6004e8a91 (patch)
tree873c34b57bcd3711f8d6f24f272cf4830e380a02 /lib
parent75ddecfe3c675855304f8ffa96a7d5dd3b8dae33 (diff)
Add missing event when starting SDK install
Change-Id: I32892a8ad64ed05a93aedf413a81b6e8c50c26f7 Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
Diffstat (limited to 'lib')
-rw-r--r--lib/xdsserver/sdk.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/xdsserver/sdk.go b/lib/xdsserver/sdk.go
index 68c92b4..88f662a 100644
--- a/lib/xdsserver/sdk.go
+++ b/lib/xdsserver/sdk.go
@@ -393,6 +393,10 @@ func (s *CrossSDK) Install(file string, force bool, timeout int, args []string,
s.sdk.Status = xsapiv1.SdkStatusInstalling
s.sdk.LastError = ""
+ if err := s.events.Emit(xsapiv1.EVTSDKStateChange, s.sdk, sess.ID); err != nil {
+ s.Log.Errorf("WS Emit EVTSDKStateChange installing : %v", err)
+ }
+
err := s.installCmd.Start()
return err