mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-15 09:25:37 +02:00
Attempt a workaround to the network layer segfault
This commit is contained in:
@@ -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;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user