Rework the 'main menu' to be a screen that's always in history
This commit is contained in:
@@ -138,7 +138,10 @@ export class SessionModel {
|
||||
}
|
||||
|
||||
async connect(): Promise<void> {
|
||||
this._connectPromise ??= this._connect()
|
||||
if (this._connectPromise) {
|
||||
return this._connectPromise
|
||||
}
|
||||
this._connectPromise = this._connect()
|
||||
await this._connectPromise
|
||||
this._connectPromise = undefined
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user