Skip to content

Commit

Permalink
Use page completion status to avoid a race condition
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroSteiner committed Sep 3, 2019
1 parent bc0d477 commit 4141fb1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions king_phisher/client/assistants/campaign.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,8 @@ def __init__(self, application, campaign_id=None):
self._expiration_time = managers.TimeSelectorButtonManager(self.application, self.gobjects['togglebutton_expiration_time'])
self._set_comboboxes()
self._set_defaults()

self._set_page_complete(False, page='Web Server URL')
self.application.rpc.async_graphql(
'{ ssl { status { enabled hasLetsencrypt hasSni } } }',
on_success=self.__async_rpc_cb_ssl_status
Expand Down Expand Up @@ -319,6 +321,7 @@ def __async_rpc_cb_changed_url_hostname(self, hostname, results):
def __async_rpc_cb_ssl_status(self, results):
self._ssl_status = results['ssl']['status']
self._can_issue_certs = all(results['ssl']['status'].values())
self._set_page_complete(True, page='Web Server URL')

@property
def campaign_name(self):
Expand Down

0 comments on commit 4141fb1

Please sign in to comment.