Added propper disconnect behaviour
This commit is contained in:
parent
c4909db2a5
commit
10066090b1
3 changed files with 22 additions and 0 deletions
|
|
@ -28,6 +28,9 @@ func stop_webrtc() -> void:
|
|||
ws_client.stop()
|
||||
offline_mode()
|
||||
|
||||
func seal_webrtc() -> void:
|
||||
ws_client.seal_lobby()
|
||||
|
||||
func start_webrtc_lobby() -> void:
|
||||
if not multiplayer.multiplayer_peer is WebRTCMultiplayerPeer:
|
||||
disconnect_all()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue