Remove RetryPeer event, Poke token count on new group #513

Merged
sarah merged 4 commits from events into master 2023-05-09 18:24:32 +00:00
1 changed files with 2 additions and 0 deletions
Showing only changes of commit 2abfaf82a1 - Show all commits

View File

@ -160,6 +160,8 @@ func (app *application) ListProfiles() []string {
// GetPeer returns a cwtchPeer for a given onion address
func (app *application) GetPeer(onion string) peer.CwtchPeer {
app.appmutex.Lock()
defer app.appmutex.Unlock()
if profile, ok := app.peers[onion]; ok {
return profile
}