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

            trackCover = currentTrack.coverArt
            trackTitle = currentTrack.name
        }
        DispatchQueue.main.async {
            self.currentTrackArtist.stringValue = trackArtist
            self.currentTrackTitle.stringValue = trackTitle
            self.setCover(trackCover)

            self.currentTrackArtist.stringValue = ""
            self.currentTrackTitle.stringValue = "kmbmpdc"
            self.setCover(nil)
            self.enableControls(false)
        }

        appDelegate?.statusItem.button?.appearsDisabled = true

        if reconnectDisable {
