Skip to content

Commit

Permalink
fixed crash when pressing dot on numpad, hotfix, not a design fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ExtReMLapin committed Feb 8, 2020
1 parent 04db213 commit 2640540
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions LuteBot/LiveInput/Midi/LiveMidiManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@ public void On()
inputDevice.StartRecording();
}
recording = true;
RecordingStateChanged.Invoke(this, new EventArgs());
if (RecordingStateChanged != null)
RecordingStateChanged.Invoke(this, new EventArgs());
}

public void Off()
Expand All @@ -131,7 +132,8 @@ public void Off()
inputDevice.StopRecording();
}
recording = false;
RecordingStateChanged.Invoke(this, new EventArgs());
if (RecordingStateChanged != null)
RecordingStateChanged.Invoke(this, new EventArgs());
}
}
}

0 comments on commit 2640540

Please sign in to comment.