mirror of
https://github.com/minetest/minetest.git
synced 2024-12-25 07:32:24 +01:00
Attempt a workaround to the network layer segfault
This commit is contained in:
parent
c349708eab
commit
6aab526989
@ -670,7 +670,7 @@ void Connection::receive()
|
|||||||
// TODO: We can not know how many layers of header there are.
|
// TODO: We can not know how many layers of header there are.
|
||||||
// For now, just assume there are no other than the base headers.
|
// For now, just assume there are no other than the base headers.
|
||||||
u32 packet_maxsize = datasize + BASE_HEADER_SIZE;
|
u32 packet_maxsize = datasize + BASE_HEADER_SIZE;
|
||||||
Buffer<u8> packetdata(packet_maxsize);
|
SharedBuffer<u8> packetdata(packet_maxsize);
|
||||||
|
|
||||||
bool single_wait_done = false;
|
bool single_wait_done = false;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user