fixed #229: handling rapid switch flapping race conditions gracefully
4 files changed