diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-04-20 14:28:08 +0200 |
|---|---|---|
| committer | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-04-20 14:28:08 +0200 |
| commit | 1c54936626a4a30d0c6f69576a06ba3661f39dc6 (patch) | |
| tree | 426c76b4c55cf9a9efbc7bd1aa957baec57b2892 /src/fsm.go | |
| parent | 77c9f266553cbadfd5fb150a26c2162b705f151e (diff) | |
Profiles: Implement SetProfileID instead of getting generic data
Diffstat (limited to 'src/fsm.go')
| -rw-r--r-- | src/fsm.go | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -119,21 +119,19 @@ func (eduvpn *VPNState) writeGraph() { f.WriteString(graph) } -func (eduvpn *VPNState) GoTransition(newState FSMStateID, data string) (bool, string) { +func (eduvpn *VPNState) GoTransition(newState FSMStateID, data string) bool { ok := eduvpn.HasTransition(newState) - received := "" - if ok { oldState := eduvpn.FSM.Current eduvpn.FSM.Current = newState if eduvpn.Debug { eduvpn.writeGraph() } - received = eduvpn.StateCallback(oldState.String(), newState.String(), data) + eduvpn.StateCallback(oldState.String(), newState.String(), data) } - return ok, received + return ok } func (eduvpn *VPNState) generateDotGraph() string { |
