FIX: EOF disconnect error also called raw handler afterwards

This commit is contained in:
Joe Higton 2014-06-10 04:09:27 +01:00
parent 09c626f488
commit 97731e1774

View File

@ -66,6 +66,7 @@ func (a *agent) work() {
} else if( err == io.EOF ){ } else if( err == io.EOF ){
a.disconnect_error(err) a.disconnect_error(err)
break
} }
a.worker.err(err) a.worker.err(err)
// If it is unexpected error and the connection wasn't // If it is unexpected error and the connection wasn't