Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.

Commit

Permalink
App: Apply previous connection network transition after returning the…
Browse files Browse the repository at this point in the history
… proper state
  • Loading branch information
jwijenbergh authored and gijzelaerr committed Jun 22, 2022
1 parent c140347 commit 854dfee
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions eduvpn/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ def initialize_network(self):
else:
validity = storage.get_current_validity(server.oauth_login_url)
self.session_transition('found_active_session', server, validity)
self.network_transition('found_previous_connection')
else:
self.session_transition('no_previous_session_found')

Expand Down
1 change: 0 additions & 1 deletion eduvpn/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ def found_active_session(self, app: Application, server: Server, validity: Valid
"""
An already active session was found.
"""
app.network_transition('found_previous_connection')
return self.new_session(app, server, validity)

def no_previous_session_found(self, app: Application) -> SessionState:
Expand Down

0 comments on commit 854dfee

Please sign in to comment.