deactivate method

  1. @protected
  2. @mustCallSuper
void deactivate()

Called when this client manager is being deactivated and potentially stopped by the OS

Implementations of this method should start with a call to the inherited method, as in super.deactivate().

Implementation

@protected
@mustCallSuper
void deactivate() {
  // first save the task queue
  AppTaskController().saveQueue();
  // then save all studies
  for (var study in repository.keys) {
    getStudyRuntime(study)?.saveDeployment();
  }
}