libnmdc: patch wrong test
This commit is contained in:
parent
27c21572b3
commit
3a67b02bd9
@ -341,7 +341,7 @@ func (this *HubConnection) worker() {
|
|||||||
this.conn, err = net.Dial("tcp", this.Hco.Address.GetHostOnly())
|
this.conn, err = net.Dial("tcp", this.Hco.Address.GetHostOnly())
|
||||||
}
|
}
|
||||||
|
|
||||||
if err == nil {
|
if err != nil {
|
||||||
this.OnEvent <- HubEvent{EventType: EVENT_CONNECTION_STATE_CHANGED, StateChange: CONNECTIONSTATE_CONNECTING}
|
this.OnEvent <- HubEvent{EventType: EVENT_CONNECTION_STATE_CHANGED, StateChange: CONNECTIONSTATE_CONNECTING}
|
||||||
this.connValid = false
|
this.connValid = false
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user