Closed enricogior closed 7 years ago
Change from:
if let _ = try? Peer(stringValue: identifierString) {
browserManager.disconnect(identifierString)
}
to:
if let _ = try? Peer(uuidIdentifier: identifierString, generation: 0) {
browserManager.disconnect(identifierString)
} else {
throw AppContextError.badParameters
}
The
disconnect
API requires a peer uuid as input parameter (here and here), that is the peer id without the generation id.But the
disconnect
API implementation assumes that the input parameter is a string that is formed by the peer uuid + the generation id and it passes it toThaliCore.BrowserManager.disconnect
that is correctly expecting just the uuid.The result of passing the peer uuid or the peer uuid + the generation id is the same and it's a silent failure.