```js
if (inProgress) {
  return;
}

inProgress = true;
```

Should follow the `if (!action)` line, here: https://github.com/borjasalguero/gaia/blob/27e9dd60d197c1bf0564215d5fcac1ba4bcdb971/apps/sms/js/link_action_handler.js#L22