This website works better with JavaScript.
Home
Explore
Help
Sign In
closed-social
/
gitea
Watch
3
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
Missed q.lock.Unlock() will cause panic (
#9705
)
for-closed-social
zeripath
4 years ago
committed by
GitHub
parent
f69f5a9f10
commit
edd31770aa
No known key found for this signature in database
GPG Key ID:
4AEE18F83AFDEB23
1 changed files
with
0 additions
and
1 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+0
-1
modules/queue/queue_wrapped.go
+ 0
- 1
modules/queue/queue_wrapped.go
View File
@ -62,7 +62,6 @@ func (q *delayedStarter) setInternal(atShutdown func(context.Context, func()), h
queue
,
err
:=
NewQueue
(
q
.
underlying
,
handle
,
q
.
cfg
,
exemplar
)
queue
,
err
:=
NewQueue
(
q
.
underlying
,
handle
,
q
.
cfg
,
exemplar
)
if
err
==
nil
{
if
err
==
nil
{
q
.
internal
=
queue
q
.
internal
=
queue
q
.
lock
.
Unlock
(
)
break
break
}
}
if
err
.
Error
(
)
!=
"resource temporarily unavailable"
{
if
err
.
Error
(
)
!=
"resource temporarily unavailable"
{
Write
Preview
Loading…
Cancel
Save