refactor: remove ensureInitialized

This commit is contained in:
Radium Zheng
2018-07-10 21:20:36 +10:00
parent 337cea6488
commit ce308eaa8b
7 changed files with 210 additions and 145 deletions

View File

@@ -398,8 +398,7 @@ class RecordingController {
this._state = ControllerState.RECORDING;
const delegate = this._adapters[this._currentSessionToken];
delegate.ensureInitialized()
.then(() => delegate.start())
delegate.start()
.then(() => {
logger.log('Local recording engaged.');
const message = i18next.t('localRecording.messages.engaged');