Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ACS
Public
Cloud
MAS
clonemap
Commits
84f161ba
Commit
84f161ba
authored
Apr 27, 2020
by
Stefan Dähling
Browse files
fix
parent
99b7407f
Pipeline
#273603
passed with stages
in 1 minute and 7 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
pkg/agency/agency.go
View file @
84f161ba
...
...
@@ -151,9 +151,9 @@ func (agency *Agency) init() (err error) {
// terminate takes care of terminating all parts of the MAP before exiting. It is to be called as a
// goroutine and waits until an OS signal is inserted into the channel gracefulStop
func
(
agency
*
Agency
)
terminate
(
gracefulStop
chan
os
.
Signal
)
{
agency
.
logInfo
.
Println
(
"Terminating agency"
)
// var err error
_
=
<-
gracefulStop
agency
.
logInfo
.
Println
(
"Terminating agency"
)
agency
.
mutex
.
Lock
()
for
i
:=
range
agency
.
localAgents
{
agency
.
localAgents
[
i
]
.
Terminate
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment