/** Stop the polling for the market info, if it is already stop this call does nothing */ private void stopPolling() { if (timer != null) { timer.cancel(); timer.purge(); timer = null; pollTask.cancel(); pollTask = null; } }