chore: re-enable toggle is connected flag

This commit is contained in:
Anthony Laibe 2023-03-31 11:04:01 +02:00 committed by Anthony Laibe
parent 9c33049b4f
commit cd6d22d1c1
1 changed files with 4 additions and 4 deletions

View File

@ -205,14 +205,14 @@ func (c *ClientWithFallback) makeCallSingleReturn(main func() (any, error), fall
} }
return err return err
} }
if true { if toggleIsConnected {
c.SetIsConnected(true) c.SetIsConnected(true)
} }
resultChan <- CommandResult{res1: res} resultChan <- CommandResult{res1: res}
return nil return nil
}, func(err error) error { }, func(err error) error {
if c.fallback == nil { if c.fallback == nil {
if true { if toggleIsConnected {
c.SetIsConnected(false) c.SetIsConnected(false)
} }
return err return err
@ -224,12 +224,12 @@ func (c *ClientWithFallback) makeCallSingleReturn(main func() (any, error), fall
resultChan <- CommandResult{vmError: err} resultChan <- CommandResult{vmError: err}
return nil return nil
} }
if true { if toggleIsConnected {
c.SetIsConnected(false) c.SetIsConnected(false)
} }
return err return err
} }
if true { if toggleIsConnected {
c.SetIsConnected(true) c.SetIsConnected(true)
} }
resultChan <- CommandResult{res1: res} resultChan <- CommandResult{res1: res}