wolyshaw 3 лет назад
Родитель
Сommit
5321b22471
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      src/components/live-broadcast/runtime.ts

+ 2 - 0
src/components/live-broadcast/runtime.ts

@@ -564,5 +564,7 @@ export const leaveIMRoom = async () => {
     // @ts-ignore
     await runtime.rtcClient?.leaveRoom(runtime.joinedRoom)
     runtime.joinedRoom = null
+    RongIMLib.disconnect()
+    runtime.imConnectStatus = 'disconnect'
   }
 }