Skip to content

Commit

Permalink
[YUNIKORN-2] small fix for placeholder start function
Browse files Browse the repository at this point in the history
  • Loading branch information
yangwwei committed Jan 19, 2021
1 parent d0a5e7b commit 12ecf11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cache/placeholder_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,12 @@ func (mgr *PlaceholderManager) cleanOrphanPlaceholders() {
}

func (mgr *PlaceholderManager) Start() {
mgr.stopChan = make(chan struct{})
if mgr.isRunning() {
log.Logger().Info("The placeholder manager has been started")
return
}
log.Logger().Info("starting the Placeholder Manager")
mgr.stopChan = make(chan struct{})
mgr.setRunning(true)
go func() {
for {
Expand Down

0 comments on commit 12ecf11

Please sign in to comment.