diff options
Diffstat (limited to 'cmd-target.go')
-rw-r--r-- | cmd-target.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd-target.go b/cmd-target.go index cd96ed4..33b757d 100644 --- a/cmd-target.go +++ b/cmd-target.go @@ -437,6 +437,10 @@ func terminalOpen(ctx *cli.Context) error { // Wait exit - blocking select { + case res := <-IOSkClient.ServerDiscoChan: + Log.Debugf("XDS Server disconnected %v", res) + return cli.NewExitError(res.error, res.code) + case res := <-exitChan: errStr := "" if res.code == 0 { |