libnmdc: patch wrong test

This commit is contained in:
mappu 2016-04-03 13:29:34 +12:00
parent 27c21572b3
commit 3a67b02bd9
1 changed files with 1 additions and 1 deletions

View File

@ -341,7 +341,7 @@ func (this *HubConnection) worker() {
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.connValid = false
} else {