mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-07-22 03:34:27 +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() {
|
||||
if (this.socket && !this.connected) {
|
||||
this.socket.connect()
|
||||
console.log('[SOCKET] Submitting connect')
|
||||
return
|
||||
}
|
||||
if (this.connected || this.socket) {
|
||||
if (this.socket) console.error('[SOCKET] Socket already established', this.url)
|
||||
else console.error('[SOCKET] Already connected to socket', this.url)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue