Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 17, 2010, 11:09:14 AM (15 years ago)
Author:
scheusso
Message:

small fix (ensure correct termination of communicationThread)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/network5/src/libraries/network/packet/Packet.cc

    r7772 r7773  
    169169//  enetPacket_ = 0; // otherwise we have a double free because enet already handles the deallocation of the packet
    170170  if( this->flags_ & PacketFlag::Reliable )
    171     Host::addPacket( enetPacket_, clientID_, 0);
     171    Host::addPacket( enetPacket_, clientID_, NETWORK_CHANNEL_DEFAULT);
    172172  else
    173     Host::addPacket( enetPacket_, clientID_, 0);
     173    Host::addPacket( enetPacket_, clientID_, NETWORK_CHANNEL_UNRELIABLE);
    174174  return true;
    175175}
Note: See TracChangeset for help on using the changeset viewer.