nats.java
nats.java copied to clipboard
Fix potential busy loops
- Increasing
reconnectWaitto wait a bit longer. A message put into thereconnectOutgoingqueue will get immediately, regardless of this wait time. Only if we are stopped will we need to wait for this amount of time before exiting the loop inrun().