Some small modifications
This commit is contained in:
parent
6f1b06a419
commit
4e03b34f51
@ -9,7 +9,7 @@ class MMVC_SocketIOServer:
|
||||
|
||||
@classmethod
|
||||
def get_instance(cls, voiceChangerManager: VoiceChangerManager):
|
||||
if not hasattr(cls, "_instance"):
|
||||
if cls._instance is None:
|
||||
sio = socketio.AsyncServer(async_mode="asgi", cors_allowed_origins="*")
|
||||
namespace = MMVC_Namespace.get_instance(voiceChangerManager)
|
||||
sio.register_namespace(namespace)
|
||||
|
Loading…
x
Reference in New Issue
Block a user