When Gunbot detects a loss of internet connectivity, it attempts to automatically reconnect. The system continuously checks for network availability and tries to re-establish the connection.