Fix deadlock on plugin shutdown.
Signed-off-by: Anusha Ragunathan <anusha@docker.com>
(cherry picked from commit 4d009084de
)
Signed-off-by: Tibor Vass <tibor@docker.com>
This commit is contained in:
parent
af0f7ad792
commit
a3f2c03ef0
2 changed files with 1 additions and 5 deletions
|
@ -46,7 +46,7 @@ func (s *DockerDaemonSuite) TestDaemonRestartWithPluginEnabled(c *check.C) {
|
|||
c.Assert(out, checker.Contains, "true")
|
||||
}
|
||||
|
||||
// TestDaemonRestartWithPluginEnabled tests state restore for a disabled plugin
|
||||
// TestDaemonRestartWithPluginDisabled tests state restore for a disabled plugin
|
||||
func (s *DockerDaemonSuite) TestDaemonRestartWithPluginDisabled(c *check.C) {
|
||||
if err := s.d.Start(); err != nil {
|
||||
c.Fatalf("Could not start daemon: %v", err)
|
||||
|
|
|
@ -174,10 +174,6 @@ func (pm *Manager) Shutdown() {
|
|||
}
|
||||
}
|
||||
close(p.exitChan)
|
||||
pm.Lock()
|
||||
p.PluginObj.Active = false
|
||||
pm.save()
|
||||
pm.Unlock()
|
||||
}
|
||||
if err := os.RemoveAll(p.runtimeSourcePath); err != nil {
|
||||
logrus.Errorf("Remove plugin runtime failed with error: %v", err)
|
||||
|
|
Loading…
Reference in a new issue