mirror of
https://github.com/danbee/persephone
synced 2025-03-04 08:39:11 +00:00
Self *could* get deallocated here
This commit is contained in:
parent
c0f8badbb5
commit
7f8e209970
@ -113,9 +113,7 @@ class AlbumDetailView: NSViewController {
|
||||
}
|
||||
|
||||
func getAlbumSongs(for album: Album) {
|
||||
App.mpdClient.getAlbumSongs(for: album.mpdAlbum) { [weak self] (mpdSongs: [MPDClient.MPDSong]) in
|
||||
guard let self = self else { return }
|
||||
|
||||
App.mpdClient.getAlbumSongs(for: album.mpdAlbum) { [self] (mpdSongs: [MPDClient.MPDSong]) in
|
||||
self.dataSource.setAlbumSongs(
|
||||
mpdSongs.map { Song(mpdSong: $0) }
|
||||
)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user