[IPC/Client] There's no need to send struct{}{} to notify a
waiting goroutine with an infinite loop about the stop. It's enough to close stopChan. Moreover it could lead to a deadlock if driver.Stop is called before driver.handleSubprocessExit. Signed-off-by: Anton Tiurin <noxiouz@yandex.ru>
This commit is contained in:
parent
10a194c775
commit
66eeadd754
1 changed files with 0 additions and 1 deletions
|
@ -158,7 +158,6 @@ func (driver *StorageDriverClient) Stop() error {
|
|||
killErr = driver.subprocess.Process.Kill()
|
||||
}
|
||||
if driver.stopChan != nil {
|
||||
driver.stopChan <- struct{}{}
|
||||
close(driver.stopChan)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue