mirror of
https://github.com/w-okada/voice-changer.git
synced 2025-02-02 16:23:58 +03:00
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…
Reference in New Issue
Block a user