Merge branch 'race' of dan/libricochet-go into master
the build was successful Details

This commit is contained in:
Sarah Jamie Lewis 2020-02-03 16:01:19 -08:00 committed by Gogs
commit 5ec0bc8e1d
1 changed files with 2 additions and 0 deletions

View File

@ -136,6 +136,8 @@ func (ra *RicochetApplication) Close(onion string) {
// ConnectionCount returns the number of concurrent connections to the application
func (ra *RicochetApplication) ConnectionCount() int {
ra.lock.Lock()
defer ra.lock.Unlock()
return len(ra.instances)
}