Skip to content

Commit

Permalink
fix mem leak
Browse files Browse the repository at this point in the history
  • Loading branch information
zwh8800 committed Jul 28, 2021
1 parent acc3b95 commit eb4a292
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/tap-over-https-gui/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,11 +214,11 @@ func (m *MainApp) syncSingle() {
if client == nil {
return
}
if client.GetStatus() == core.ClientStatusRunning {
if client.GetStatus() == core.ClientStatusRunning && status != runStatusRunning {
systray.SetIcon(iconRunning)
m.mRun.SetTitle("停止")
status = runStatusRunning
} else if client.GetStatus() == core.ClientStatusStopped {
} else if client.GetStatus() == core.ClientStatusStopped && status != runStatusStopped {
systray.SetIcon(iconStopped)
m.mRun.SetTitle("启动")
status = runStatusStopped
Expand Down
Binary file added cmd/tap-over-https-gui/tap-over-https-gui
Binary file not shown.

0 comments on commit eb4a292

Please sign in to comment.