cleanup the ephemeral hidden service when GUI server is stopped, but don't disconnect from Tor

This commit is contained in:
Miguel Jacq 2017-12-07 16:08:03 +11:00
parent 796a4b3b5d
commit e7dd78dba7
No known key found for this signature in database
GPG key ID: EEA4341C6D97A0B6
2 changed files with 23 additions and 18 deletions

View file

@ -355,6 +355,8 @@ class OnionShareGui(QtWidgets.QMainWindow):
# Probably we had no port to begin with (Onion service didn't start)
pass
self.app.cleanup()
# Remove ephemeral service, but don't disconnect from Tor
self.onion.cleanup(stop_tor=False)
self.filesize_warning.hide()
self.stop_server_finished.emit()