Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
bitmask-vpn
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
leap
bitmask-vpn
Commits
6aa6b0cd
Verified
Commit
6aa6b0cd
authored
6 years ago
by
meskio
Browse files
Options
Downloads
Patches
Plain Diff
[bug] lock main goroutine into OS thread
- Resolves:
#52
parent
63aab32a
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
main.go
+5
-0
5 additions, 0 deletions
main.go
with
5 additions
and
0 deletions
main.go
+
5
−
0
View file @
6aa6b0cd
...
...
@@ -20,6 +20,7 @@ import (
"fmt"
"log"
"os"
"runtime"
"0xacab.org/leap/bitmask-systray/bitmask"
"github.com/jmshal/go-locale"
...
...
@@ -35,6 +36,10 @@ var version string
var
printer
*
message
.
Printer
func
main
()
{
// on OSX sometimes the systray doesn't work (bitmask-systray#52)
// locking the main thread into an OS thread fixes the problem
runtime
.
LockOSThread
()
versionFlag
:=
flag
.
Bool
(
"version"
,
false
,
"Version of the bitmask-systray"
)
flag
.
Parse
()
if
*
versionFlag
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment