Comments (3)
This is caused by the client failing to send a Disconnect
packet to the server, due to the fact that the main thread ending in voxygen
never gives the client threads time to do so.
Possible solution: refactor connection status to be a state machine rather than a simple boolean. The main thread should only shutdown once a terminal state is reached (i.e: with something like Client::wait_for_shutdown(client)
).
Suggested states:
enum ClientState {
PortNotBound,
PendingConnection,
DisconnectSent,
Disconnected,
}
from veloren.
Removed 'good first issue' because solving this properly is something that requires refactoring a fair few things within the client.
from veloren.
I've partially solved this by fixing the client connection status system. It's now more of a state machine than a boolean "is/is not connected" thing. This means it does actually send a disconnect packet.
This also needs to be fixed server-side, but I feel like this plays into @terahxluna's event dispatching and server refactoring efforts now.
from veloren.
Related Issues (20)
- critical error HOT 1
- Crash HOT 2
- important thingy HOT 1
- select cloud = None then this error HOT 4
- Add riscv64 Support HOT 2
- Ungrabbed cursor invisible after unfocusing and refocusing the window. HOT 1
- Add a generic path-finding API that allows us to guide agents through the world HOT 1
- Prevent player position resetting causing "stuck in ground" glitches HOT 3
- Tracking Issue for 0.1.0 HOT 1
- error: linking with `link.exe` failed: exit code: 1 HOT 4
- We've moved to GitLab! Please report all issues on there.
- BUG black screen when cloud setting > minimal HOT 1
- Unable to connect to official veloren server
- Veloren load failure HOT 1
- Manually select nvidia gpu HOT 2
- Multiplayer bug HOT 1
- Veloren doesn`t start HOT 4
- Android native support? HOT 1
- Where i should create pull request with translation update? HOT 1
- can you make this game playable on the website, I will be very grateful if you make it a website version HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from veloren.