[IPC] Tiny cleaning
This commit is contained in:
parent
b60ee6dfa0
commit
4635a1e903
@ -423,7 +423,6 @@ func (driver *StorageDriverClient) handleSubprocessExit() {
|
||||
func (driver *StorageDriverClient) receiveResponse(receiver libchan.Receiver, response interface{}) error {
|
||||
receiveChan := make(chan error, 1)
|
||||
go func(receiver libchan.Receiver, receiveChan chan<- error) {
|
||||
defer close(receiveChan)
|
||||
receiveChan <- receiver.Receive(response)
|
||||
}(receiver, receiveChan)
|
||||
|
||||
@ -432,9 +431,6 @@ func (driver *StorageDriverClient) receiveResponse(receiver libchan.Receiver, re
|
||||
select {
|
||||
case err = <-receiveChan:
|
||||
case err, ok = <-driver.exitChan:
|
||||
go func(receiveChan <-chan error) {
|
||||
<-receiveChan
|
||||
}(receiveChan)
|
||||
if !ok {
|
||||
err = driver.exitErr
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user