Search Issue Tracker
Won't Fix
Votes
1
Found in
5.5.1f1
Issue ID
881939
Regression
No
NetworkConnection.isConnected is true after server was stopped and client was disconnected
To reproduce:
1. Open the project, attached by the user (Agar2.zip)
2. Build the project for standalone
3. Open the build and press Start Server
4. In the Editor, enter Play mode and press Start Client
5. In the Editor, press Connect
6. Select Network game object in the Hierarchy
7. In the build, press Stop
8. In the Inspector, in Network Client Manager component, observe that Is Connected is still true
Expected: stopping the server makes isConnected property be set to false
Actual: NetworkConnection.isConnected is still true even though the server is disconnected
Reproduced in 5.5.1f1, 5.6.2f1, 2017.1.0f1, 2017.2.0b1
Could not check for regression due to Unity not supporting backwards compatibility
Comments (1)
-
clever
Jul 10, 2017 02:22
It should be also noted that this happens also if the app loses focus. In fact, the connection actually drops if the app loses focus on iOS/Android. Even when the player opens their status bar to adjust brightness or even does an in-app purchase. It's a serious flaw that the player gets disconnected when they're doing an in-app purchase or adjusting brightness ...etc
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Unity Cloud icon does not appear next to project and does not connect correctly when the project is created with Cloud but closed right after creation
- ScrollerSlider in the Scroller Control is still using UXMLTraits
- Crash on ExtractHandles when shutting down the Editor in a specific scene while Burst jobs are in progress
- Unity Hub closes with no "Project is currently open" window when selecting an already open project from the Projects list
- The Hub freezes indefinitely when copy/pasting a lot of characters in the “Set project display name” Hub window since it has no character limit
Resolution Note:
Mass closure of UNET Bugs.
As UNet is Deprecated we are moving to low maintenance mode, where critical issues can get fixes.
Closing this bug as part of cleaning-up the Bug List.
If you feel this bug is really a road-blocker, you can reopen the bug and we will work this one.