aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib
diff options
context:
space:
mode:
Diffstat (limited to 'server/lib')
-rw-r--r--server/lib/peertube-socket.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/lib/peertube-socket.ts b/server/lib/peertube-socket.ts
index c91407a59..0740e378e 100644
--- a/server/lib/peertube-socket.ts
+++ b/server/lib/peertube-socket.ts
@@ -42,12 +42,14 @@ class PeerTubeSocket {
42 socket.on('subscribe', ({ videoId }) => { 42 socket.on('subscribe', ({ videoId }) => {
43 if (!isIdValid(videoId)) return 43 if (!isIdValid(videoId)) return
44 44
45 /* eslint-disable @typescript-eslint/no-floating-promises */
45 socket.join(videoId) 46 socket.join(videoId)
46 }) 47 })
47 48
48 socket.on('unsubscribe', ({ videoId }) => { 49 socket.on('unsubscribe', ({ videoId }) => {
49 if (!isIdValid(videoId)) return 50 if (!isIdValid(videoId)) return
50 51
52 /* eslint-disable @typescript-eslint/no-floating-promises */
51 socket.leave(videoId) 53 socket.leave(videoId)
52 }) 54 })
53 }) 55 })