Merge branch 'master' of dan/libricochet-go into master

This commit is contained in:
erinn 2019-02-05 19:57:33 +00:00 committed by Gogs
commit 9e4e042ffb
1 changed files with 3 additions and 0 deletions

View File

@ -63,6 +63,9 @@ func (ols *onionListenService) Close() {
// GetBootstrapStatus returns an int 0-100 on the percent the bootstrapping of the underlying network is at and an optional string message
func (tp *torProvider) GetBootstrapStatus() (int, string) {
if tp.t == nil {
return 0, "error: no tor, trying to restart..."
}
kvs, err := tp.t.Control.GetInfo("status/bootstrap-phase")
if err != nil {
return 0, "error"