forked from cwtch.im/cwtch
Actually use the last known signature for fetching
This commit is contained in:
parent
678c820db2
commit
9f20802a1d
|
@ -53,6 +53,7 @@ func (ta *TokenBoardClient) NewInstance() tapir.Application {
|
|||
tba.acn = ta.acn
|
||||
tba.tokenService = ta.tokenService
|
||||
tba.tokenServiceOnion = ta.tokenServiceOnion
|
||||
tba.lastKnownSignature = ta.lastKnownSignature
|
||||
return tba
|
||||
}
|
||||
|
||||
|
@ -82,7 +83,6 @@ func (ta *TokenBoardClient) Listen() {
|
|||
}
|
||||
|
||||
// We always expect the server to follow protocol, and the second it doesn't we close the connection
|
||||
// TODO issue an error so the client is aware
|
||||
var message groups.Message
|
||||
if err := json.Unmarshal(data, &message); err != nil {
|
||||
log.Debugf("Server sent an unexpected message, closing the connection: %v", err)
|
||||
|
|
Loading…
Reference in New Issue