mirror of
https://github.com/status-im/status-keycard-go.git
synced 2025-01-18 18:31:56 +00:00
only send card inserted if sent insertcard before
This commit is contained in:
parent
c8b38fe24a
commit
16f37cb459
7
flow.go
7
flow.go
@ -201,8 +201,11 @@ func (f *KeycardFlow) connect() (*keycardContext, error) {
|
||||
return nil, restartErr()
|
||||
}
|
||||
t.Stop()
|
||||
f.state = Running
|
||||
signal.Send(CardInserted, FlowStatus{})
|
||||
if f.state == Paused {
|
||||
f.state = Running
|
||||
signal.Send(CardInserted, FlowStatus{})
|
||||
}
|
||||
|
||||
return kc, nil
|
||||
case <-t.C:
|
||||
f.pause(InsertCard, ErrorConnection, FlowParams{})
|
||||
|
Loading…
x
Reference in New Issue
Block a user