title: Timer function adding an extra Timer on each call
body: <p>Can anyone help me with my two Timer Functions:</p>
  
  <p>The first one just makes the timer while canceling any previous one out first,
  The second one just handles Cancelling the Timer</p>
  
  <pre><code>public void startInterval(int delay, int time, final String eventName){
      cancelInterval();
      mInterval = new Timer();
      mInterval.scheduleAtFixedRate(new TimerTask() {
        @Override
        public void run() {
          Log.i("timer", "Interval");
          sendEvent(eventName, Arguments.createMap());
        }
      }, delay, time);
    }
  
  public void cancelInterval() {
      if (mInterval != null){
        mInterval.cancel();
        mInterval.purge();
      }
  
      mInterval = null;
  }
  </code></pre>
  
  <p>The problem is that the timer is multiplying every time I call it.</p>
  
  <p>The first time I call, it works as intended, but after a few calls it ends up adding an extra timer per call</p>