Flag reset on disconnect