Permalink
Browse files

fixes Media Api Xna exception

  • Loading branch information...
1 parent 997d7cb commit 949b3f00f8156f76b5a576aac85a64d4ae297fca @sgrebnov sgrebnov committed Oct 16, 2012
Showing with 5 additions and 2 deletions.
  1. +5 −2 templates/standalone/cordovalib/Commands/AudioPlayer.cs
@@ -622,8 +622,11 @@ private void InitializeXnaGameLoop()
private void FinalizeXnaGameLoop()
{
// Timer to simulate the XNA game loop (Microphone is from XNA)
- this.dtXna.Stop();
- this.dtXna = null;
+ if (this.dtXna != null)
+ {
+ this.dtXna.Stop();
+ this.dtXna = null;
+ }
}
#endregion

0 comments on commit 949b3f0

Please sign in to comment.