allow antunnel exit on system exit

This commit is contained in:
lxsang 2020-08-06 23:45:21 +02:00
parent 525badca3f
commit 8b2c534e80
3 changed files with 495 additions and 1 deletions

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@ -23,6 +23,9 @@ class AntunnelService extends OS.application.BaseService
@iconclass = "fa fa-circle" @iconclass = "fa fa-circle"
@iconclass = "fa fa-close" unless @is_connect @iconclass = "fa fa-close" unless @is_connect
@update() @update()
OS.onexit "cleanupAntunnel", () =>
Antunnel.tunnel.close() if Antunnel.tunnel
@quit()
action: (e) -> action: (e) ->