mirror of
https://github.com/jiojciojsioe3/a3cjroijsiojiorj.git
synced 2024-11-15 07:21:50 +08:00
fix if p2 closed song
This commit is contained in:
parent
e90fdd87b5
commit
da90ccde34
@ -786,7 +786,8 @@ class SongSelect{
|
||||
this.state.selLock = true
|
||||
p2.send("songsel", {
|
||||
song: this.selectedSong,
|
||||
selected: true
|
||||
selected: true,
|
||||
fromRandom: this.lastRandom
|
||||
})
|
||||
}
|
||||
}
|
||||
@ -846,8 +847,7 @@ class SongSelect{
|
||||
if(!this.state.selLock){
|
||||
this.state.selLock = true
|
||||
p2.send("songsel", {
|
||||
song: this.lastRandom ? this.songs.findIndex(song => song.action === "random") : this.selectedSong,
|
||||
fromRandom: this.lastRandom
|
||||
song: this.lastRandom ? this.songs.findIndex(song => song.action === "random") : this.selectedSong
|
||||
})
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user