Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
imageViewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository 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
yona.walther
imageViewer
Commits
bd81b476
Commit
bd81b476
authored
2 years ago
by
yona.walther
Browse files
Options
Downloads
Patches
Plain Diff
Update main.go
parent
32f6d9b4
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
main.go
+1
-0
1 addition, 0 deletions
main.go
with
1 addition
and
0 deletions
main.go
+
1
−
0
View file @
bd81b476
...
@@ -140,6 +140,7 @@ func DisplayPicture(c echo.Context) error {
...
@@ -140,6 +140,7 @@ func DisplayPicture(c echo.Context) error {
mutex
.
Lock
()
mutex
.
Lock
()
defer
mutex
.
Unlock
()
defer
mutex
.
Unlock
()
if
displayPictureIsRunning
{
if
displayPictureIsRunning
{
displayPictureIsRunning
=
false
errSig
:=
syscall
.
Kill
(
pidExecDisplayPicture
,
syscall
.
SIGINT
)
errSig
:=
syscall
.
Kill
(
pidExecDisplayPicture
,
syscall
.
SIGINT
)
if
errSig
!=
nil
{
if
errSig
!=
nil
{
return
c
.
String
(
http
.
StatusInternalServerError
,
"A problem has been encountered while stopping displayPicture: "
+
errSig
.
Error
()
+
"
\n
"
)
return
c
.
String
(
http
.
StatusInternalServerError
,
"A problem has been encountered while stopping displayPicture: "
+
errSig
.
Error
()
+
"
\n
"
)
...
...
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