Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
client
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elixxir
client
Commits
fad0531d
Commit
fad0531d
authored
Aug 28, 2020
by
Benjamin Wenger
Browse files
Options
Downloads
Patches
Plain Diff
fixed the channel access for single stopper
parent
c87aa7fb
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
context/stoppable/single.go
+2
-2
2 additions, 2 deletions
context/stoppable/single.go
with
2 additions
and
2 deletions
context/stoppable/single.go
+
2
−
2
View file @
fad0531d
...
@@ -31,8 +31,8 @@ func (s *Single) IsRunning() bool {
...
@@ -31,8 +31,8 @@ func (s *Single) IsRunning() bool {
}
}
// returns the read only channel it will send the stop signal on
// returns the read only channel it will send the stop signal on
func
(
s
*
Single
)
Sigal
()
bool
{
func
(
s
*
Single
)
Quit
()
<-
chan
struct
{}
{
return
atomic
.
LoadUint32
(
s
.
running
)
==
1
return
s
.
quit
}
}
// returns the name of the thread. This is designed to be
// returns the name of the thread. This is designed to be
...
...
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