             self.currentTrackArtist.stringValue = ""
             self.currentTrackTitle.stringValue = "kmbmpdc"
             self.setCover(nil)
-        }
-
-        enableControls(false)
+            self.enableControls(false)
+        }
+
         appDelegate?.statusItem.button?.appearsDisabled = true
 
         if reconnectDisable {


    /// Updates user interface when MPD state or current track changes.
    func updatePlayerStatus() {
        changeImageAssets()

        // Populate current track details in the user interface.
        var trackArtist: String = ""
        var trackCover: NSImage? = nil
        var trackTitle: String = "kmbmpdc"


    /// Perform tasks after client connects to the server.
    func clientConnected() {
        DispatchQueue.main.async {
            self.enableControls(true)
        }
        appDelegate?.statusItem.button?.appearsDisabled = false
    }

