Fix potential state desync in disconnectFromIrc()

No match.