Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
proller committed Nov 19, 2024
1 parent bce6a8e commit cc4d4d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/network/multi/connection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ void ConnectionMulti::Disconnect()
bool ConnectionMulti::ReceiveTimeoutMs(NetworkPacket *pkt, u32 timeout_ms)
{
u32 ret = 0;
for (auto i = 0; !i || i < timeout_ms; ++i) {
for (auto i = 0; !i || (i < timeout_ms/10); ++i) {
const u32 timeout = i ? 10 : 0;
//for (const auto &timeout : {u32(0), u32(1)}) {
#if USE_SCTP
Expand Down
4 changes: 2 additions & 2 deletions src/network/ws/threads.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -339,9 +339,9 @@ void ConnectionSendThread::sendAsPacketReliable(BufferedPacketPtr &p, Channel *c
bool ConnectionSendThread::rawSendAsPacket(session_t peer_id, u8 channelnum,
const SharedBuffer<u8> &data, bool reliable)
{
#ifdef __EMSCRIPTEN__
//#ifdef __EMSCRIPTEN__
reliable = false;
#endif
//#endif

PeerHelper peer = m_connection->getPeerNoEx(peer_id);
if (!peer) {
Expand Down

0 comments on commit cc4d4d3

Please sign in to comment.