forked from openprivacy/libricochet-go
Merge branch 'race' of dan/libricochet-go into master
This commit is contained in:
commit
5ec0bc8e1d
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue