forked from TrueCloudLab/distribution
Merge pull request #776 from noxiouz/tiny_cleaninig
[IPC] Tiny cleaning
This commit is contained in:
commit
a463f48b1a
1 changed files with 0 additions and 4 deletions
|
@ -423,7 +423,6 @@ func (driver *StorageDriverClient) handleSubprocessExit() {
|
||||||
func (driver *StorageDriverClient) receiveResponse(receiver libchan.Receiver, response interface{}) error {
|
func (driver *StorageDriverClient) receiveResponse(receiver libchan.Receiver, response interface{}) error {
|
||||||
receiveChan := make(chan error, 1)
|
receiveChan := make(chan error, 1)
|
||||||
go func(receiver libchan.Receiver, receiveChan chan<- error) {
|
go func(receiver libchan.Receiver, receiveChan chan<- error) {
|
||||||
defer close(receiveChan)
|
|
||||||
receiveChan <- receiver.Receive(response)
|
receiveChan <- receiver.Receive(response)
|
||||||
}(receiver, receiveChan)
|
}(receiver, receiveChan)
|
||||||
|
|
||||||
|
@ -432,9 +431,6 @@ func (driver *StorageDriverClient) receiveResponse(receiver libchan.Receiver, re
|
||||||
select {
|
select {
|
||||||
case err = <-receiveChan:
|
case err = <-receiveChan:
|
||||||
case err, ok = <-driver.exitChan:
|
case err, ok = <-driver.exitChan:
|
||||||
go func(receiveChan <-chan error) {
|
|
||||||
<-receiveChan
|
|
||||||
}(receiveChan)
|
|
||||||
if !ok {
|
if !ok {
|
||||||
err = driver.exitErr
|
err = driver.exitErr
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue