Author Topic: Calling StartUDP multiple times  (Read 1608 times)

nah0y

  • Sr. Member
  • ****
  • Thank You
  • -Given: 1
  • -Receive: 2
  • Posts: 430
  • \o/
    • View Profile
Calling StartUDP multiple times
« on: May 14, 2014, 12:10:40 PM »
Okay, this is totally my fault, I had an issue with TNet, but this was because I called TNManager.StartUDP once, and call it again after some specific action.
Shouldn't you add something like, check if udp has already been started and if that's the cased, return false (instead of true) ?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Calling StartUDP multiple times
« Reply #1 on: May 15, 2014, 12:31:55 AM »
Calling Start() again will make it call Stop() first -- line 84 of TNUdpProtocol.cs.