Skip to content

Commit

Permalink
Provider receives the promise. #345
Browse files Browse the repository at this point in the history
  • Loading branch information
soffokl committed Sep 13, 2018
1 parent 013b295 commit 52f2eca
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions core/service/manager.go
Expand Up @@ -22,6 +22,7 @@ import (
"github.com/mysteriumnetwork/node/communication"
"github.com/mysteriumnetwork/node/core/ip"
"github.com/mysteriumnetwork/node/core/location"
"github.com/mysteriumnetwork/node/core/promise"
"github.com/mysteriumnetwork/node/discovery"
"github.com/mysteriumnetwork/node/identity"
identity_selector "github.com/mysteriumnetwork/node/identity/selector"
Expand Down Expand Up @@ -117,6 +118,11 @@ func (manager *Manager) Start() (err error) {
return err
}

promiseHandler := promise.NewDialogHandler()
if err := manager.dialogWaiter.ServeDialogs(promiseHandler); err != nil {
return err
}

vpnStateCallback := func(state openvpn.State) {
switch state {
case openvpn.ProcessStarted:
Expand Down

0 comments on commit 52f2eca

Please sign in to comment.