diff options
author | Sebastien Douheret <sebastien.douheret@iot.bzh> | 2018-07-25 15:52:17 +0200 |
---|---|---|
committer | Sebastien Douheret <sebastien.douheret@iot.bzh> | 2018-07-25 15:52:17 +0200 |
commit | 1d2f02988debfe4fe3891d82b2de23d6004e8a91 (patch) | |
tree | 873c34b57bcd3711f8d6f24f272cf4830e380a02 /lib | |
parent | 75ddecfe3c675855304f8ffa96a7d5dd3b8dae33 (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.go | 4 |
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 |