mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-07-23 12:16:10 +02:00
Fix: Login/logout socket connection issue #29
This commit is contained in:
parent
65706a52fc
commit
ba00acaef5
4 changed files with 11 additions and 6 deletions
|
@ -157,6 +157,11 @@ class Server extends EventEmitter {
|
||||||
}
|
}
|
||||||
|
|
||||||
connectSocket() {
|
connectSocket() {
|
||||||
|
if (this.socket && !this.connected) {
|
||||||
|
this.socket.connect()
|
||||||
|
console.log('[SOCKET] Submitting connect')
|
||||||
|
return
|
||||||
|
}
|
||||||
if (this.connected || this.socket) {
|
if (this.connected || this.socket) {
|
||||||
if (this.socket) console.error('[SOCKET] Socket already established', this.url)
|
if (this.socket) console.error('[SOCKET] Socket already established', this.url)
|
||||||
else console.error('[SOCKET] Already connected to socket', this.url)
|
else console.error('[SOCKET] Already connected to socket', this.url)
|
||||||
|
|
|
@ -13,8 +13,8 @@ android {
|
||||||
applicationId "com.audiobookshelf.app"
|
applicationId "com.audiobookshelf.app"
|
||||||
minSdkVersion rootProject.ext.minSdkVersion
|
minSdkVersion rootProject.ext.minSdkVersion
|
||||||
targetSdkVersion rootProject.ext.targetSdkVersion
|
targetSdkVersion rootProject.ext.targetSdkVersion
|
||||||
versionCode 35
|
versionCode 36
|
||||||
versionName "0.9.17-beta"
|
versionName "0.9.18-beta"
|
||||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||||
aaptOptions {
|
aaptOptions {
|
||||||
// Files and dirs to omit from the packaged assets dir, modified to accommodate modern web apps.
|
// Files and dirs to omit from the packaged assets dir, modified to accommodate modern web apps.
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "audiobookshelf-app",
|
"name": "audiobookshelf-app",
|
||||||
"version": "v0.9.17-beta",
|
"version": "v0.9.18-beta",
|
||||||
"author": "advplyr",
|
"author": "advplyr",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "nuxt --hostname localhost --port 1337",
|
"dev": "nuxt --hostname localhost --port 1337",
|
||||||
|
|
|
@ -67,8 +67,8 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
logout() {
|
async logout() {
|
||||||
this.$axios.$post('/logout').catch((error) => {
|
await this.$axios.$post('/logout').catch((error) => {
|
||||||
console.error(error)
|
console.error(error)
|
||||||
})
|
})
|
||||||
this.$server.logout()
|
this.$server.logout()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue