Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot stop NodeLIstServer in Unity Editor. #3

Open
kvibert opened this issue Jul 15, 2020 · 1 comment
Open

Cannot stop NodeLIstServer in Unity Editor. #3

kvibert opened this issue Jul 15, 2020 · 1 comment

Comments

@kvibert
Copy link

kvibert commented Jul 15, 2020

After I start list server in Unity Editor, the NodeListServer instance show "New server added: 'FractalServer' from ::ffff:127.0.0.1. UUID: 'ecb4d255-fbc8-4c4d-81a5-52e093bbf3ca'", then I stop server in Unity Editor, the NodeListServer instance show nothing , and restart it in unity editor, there will be an error occurs, please see the log:

NodeLS: Mission failed. We'll get them next time.
An error occurred while registering the server. One or more required fields, like the server GUID, name and port might be missing. You will need to fix this and call RegisterServer again to retry.
UnityEngine.Debug:LogError(Object)
d__43:MoveNext() (at Assets/NodeListServer/NodeListServerNetManager.cs:356)
UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)

HTTP/1.1 400 Bad Request
UnityEngine.Debug:LogError(Object)
d__43:MoveNext() (at Assets/NodeListServer/NodeListServerNetManager.cs:359)
UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)

@SoftwareGuy
Copy link
Owner

Ahh, that's due to a UUID collision. For whatever reason, when you stopped the NodeLS NetworkManager, OnStopServer didn't get called, or you didn't call base.OnStopServer() in your own custom networkmanager based on NodeLS.

There's a fix I'll commit shortly that will hopefully fix this behaviour.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants