feat(net): handle connection removal in WowConnectionNet

This commit is contained in:
fallenoak 2023-02-18 17:16:41 -06:00 committed by GitHub
parent 84a4ead425
commit 0ca1c8e331
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 19 additions and 1 deletions

View file

@ -31,6 +31,11 @@ void WowConnectionNet::PlatformInit(bool useEngine) {
// TODO
}
void WowConnectionNet::PlatformRemove(WowConnection* connection) {
char buf = '\1';
write(s_workerPipe[1], &buf, sizeof(buf));
}
void WowConnectionNet::PlatformRun() {
pipe(s_workerPipe);