These are chat archives for TheHolyWaffle/TeamSpeak-3-Java-API

3rd
Nov 2016
Sefa Eyeoglu
@Scrumplex
Nov 03 2016 15:30
Does the api trigger the onDisconnect event, when I call TS3Query#exit()?
Roger Baumgartner
@rogermb
Nov 03 2016 15:37
I don't think it does
Not 100% sure though :stuck_out_tongue:
Sefa Eyeoglu
@Scrumplex
Nov 03 2016 15:38
Shouldn't it? :smile: I mean if it disconnects, it should also trigger the event
Roger Baumgartner
@rogermb
Nov 03 2016 15:39
Sure, but TS3Query#exit will always be called by user code
Sefa Eyeoglu
@Scrumplex
Nov 03 2016 15:40
Yes you are right. That could have saved some duplicate code.
Roger Baumgartner
@rogermb
Nov 03 2016 15:41
Is that fireDisconnect method also called in case the exit function is called? I thought that wasn't the case ^^
Ah, alright :smile:
Sefa Eyeoglu
@Scrumplex
Nov 03 2016 15:41
Already deleted the message. I was a bit lazy to read the code. :smile:
Roger Baumgartner
@rogermb
Nov 03 2016 15:43
If I remember correctly I made a user-requested shutdown not fire an event, because that would lead to more complicated connection handlers without actually adding any value
Sefa Eyeoglu
@Scrumplex
Nov 03 2016 15:44
Yeah. I could just check if something already got removed and just continue if it has been.