I encountered this error on mozilla firefox

After updating for my Mozilla Firefox, I encountered an error saying, “a connection timed out error’’ or sometimes some sort of “software update failed” message.
Software Update
Welcome to the Software Update
There were problems checking for, downloading, or installing this update. Firefox could not be updated because:
Connection timed out
You can update Firefox manually by visiting this link and downloading the latest version:
https://www.mozilla.org/en-US/firefox/
