That depends on your miner. We would need a bit more info than you provided to give a solid answer. Miners *should* for the most part sit there and keep trying until it gets a connection but I know some miners after too many timeouts just go into an idle mode.
It’s an S7 Antminer. That would be great if it just kept trying until the signal came back.