Discord keeps closing and opening because it is attempting to restart after a crash or an update, often triggered by corrupted local data or conflicting background processes. The application detects a failure state and automatically launches again to restore your connection to servers.
This behavior usually indicates that the software is unable to complete its initialization sequence cleanly. When the app closes unexpectedly, Windows or macOS logs the event as a crash. The next time you interact with the system or when Discord’s auto-restart feature activates, it opens briefly to check for updates or repair files before potentially crashing again. This cycle repeats until the underlying cause—such as a bad cache file or a permission error—is resolved.
Corrupted Cache Files Trigger Repeated Crashes
The most common reason for this specific loop is corruption in the application’s local cache. Discord stores significant amounts of data locally to speed up loading times, including images, voice settings, and server configurations. If these files become damaged due to an interrupted shutdown or a disk error, the app fails to read them upon launch.
To fix this, you need to clear the cache so Discord can rebuild fresh files. On Windows, press the Windows key and R simultaneously to open the Run dialog. Type %appdata% and press Enter. Locate the folder named Discord and delete it entirely. Repeat this process for the %localappdata% folder by typing it into the Run dialog and deleting the Discord folder there. On macOS, navigate to ~/Library/Application Support/ and delete the Discord folder. After removing these folders, restart your computer and launch Discord again. The app will take longer to load initially as it downloads fresh data, but the crashing should stop.
Verify Integrity of Application Files
If clearing the cache does not resolve the issue, the core application files themselves may be damaged. Discord includes a built-in tool to verify these files. Open the Discord desktop app and click the gear icon at the bottom left to open User Settings. Navigate to Advanced in the left sidebar. Look for the option labeled Reset Settings or Verify Integrity of Application Files. Click this button and allow the process to complete. This scans the installation directory and replaces any missing or corrupted binaries without deleting your account data or chat history.
This step is critical if the app crashes immediately upon clicking the icon. A verified installation ensures that the executable code matches the expected standard, preventing immediate termination by the operating system.
Conflicting Background Processes Cause Interruptions
Discord requires access to specific system resources, particularly the microphone, camera, and audio drivers. Other applications running in the background can seize these resources, causing Discord to fail during startup. Common culprits include screen recording software, overlay tools from gaming platforms, or antivirus programs that flag Discord’s communication methods as suspicious.
Start by disabling overlays. If you use Steam, Epic Games, or NVIDIA GeForce Experience, locate their settings and turn off the in-game overlay feature. These overlays inject code into running applications, which frequently conflicts with Discord’s own overlay and causes instability. Close all non-essential applications using the Task Manager on Windows or Activity Monitor on macOS. Launch Discord with only the necessary system services running. If the app stays open, one of the closed applications was causing the conflict.
Check Antivirus and Firewall Interference
Security software sometimes interprets Discord’s rapid connection attempts as malicious activity. Check your antivirus program’s quarantine log to see if Discord has been blocked or deleted recently. Add Discord.exe to your antivirus exclusion list. Ensure that your firewall allows both inbound and outbound traffic for Discord. If you are on a corporate or school network, the administrator may have restricted the ports Discord uses for VoIP calls, causing the app to close when it tries to establish a voice channel.
Outdated Drivers Lead to Audio Failures
Audio driver issues are a frequent cause of sudden closures. Discord relies heavily on the Realtek or high-definition audio drivers to manage input and output streams. If these drivers are outdated or incompatible with your current operating system version, Discord may crash when it attempts to initialize the audio subsystem.
Update your audio drivers through your device manager or motherboard manufacturer’s support page. Do not rely solely on Windows Update for these drivers, as it often provides generic versions that lack necessary compatibility patches. After updating, restart your computer. In Discord, go to User Settings > Voice & Video. Click Reset Voice Settings. This forces the app to re-detect the new driver configuration. Test a voice channel to ensure stability.
Reinstallation Removes Persistent Errors
If the previous steps fail, a clean reinstall is necessary. Simply uninstalling the app via the control panel often leaves behind residual files that continue to cause problems. Use the official Discord cleaner tool if available, or manually delete the AppData folders as described in the cache section. Download the latest installer directly from the Discord website. Avoid third-party download managers or mirrors.
Install the application in a default location. Do not change the installation path unless you have a specific storage constraint. Run the installer as an administrator to ensure proper permission settings are applied. This grants Discord the necessary rights to write to system directories and register itself with the OS. After installation, log in and test the application. A fresh installation eliminates deep-seated configuration errors that persist across updates.
Operating System Compatibility Checks
Ensure your operating system is fully updated. Discord requires recent versions of Windows 10, Windows 11, macOS, or Linux distributions. Older versions may lack security protocols required by the app. Check for pending system updates and install them. Restart your device after installing updates. This ensures that kernel-level changes are applied, which can resolve low-level conflicts between Discord and the OS.
If you are using a beta version of an operating system, consider switching to a stable release. Beta systems often have bugs that affect third-party applications like Discord. Stability is prioritized over new features in this context. If the problem persists only on specific networks, try connecting to a different Wi-Fi network or using a mobile hotspot to rule out ISP-level blocking or routing issues.