bool _rebootCamera(Dut.IPCamera <U> camera, string camera_ip, int time_out) { bool ret = false; int count = 0; camera.rebootViaFirmware(); RE: count++; ret = !globalUtility.pingNetwork(camera_ip); if (!ret) { if (count < time_out) { Thread.Sleep(1000); goto RE; } } return(ret); }