Make downstreamConn.runUntilegistered exit with an error on EOF
This commit is contained in:
parent
75e698f671
commit
b1b519d4f9
@ -492,9 +492,7 @@ func (dc *downstreamConn) register() error {
|
||||
func (dc *downstreamConn) runUntilRegistered() error {
|
||||
for !dc.registered {
|
||||
msg, err := dc.irc.ReadMessage()
|
||||
if err == io.EOF {
|
||||
break
|
||||
} else if err != nil {
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to read IRC command: %v", err)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user