Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yeungkaho authored and yeungkaho committed May 31, 2017
1 parent ded44eb commit 9f74f0e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion KeyboardKeyboard/KKInstrument.swift
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,8 @@ class KKInstrument {
}
for i in 0..<keyList.count - 1{
if keyList[i] == keyCode {
keyList.remove(at: i)
keyList.remove(at: i)
break
}
}
}
Expand Down
3 changes: 3 additions & 0 deletions KeyboardKeyboard/KKRecorder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ class KKRecorder {
}

func playRecording() {
if player == nil {
return
}
do {try player!.reloadFile()} catch{}
player!.play()
}
Expand Down

0 comments on commit 9f74f0e

Please sign in to comment.