Mathbl
02/20/2018, 2:11 PMdisconnect
that I could call from anywhere. Disconnect would check if isConnected
and if not, will just do nothing. But the thing is, right now, if disconnect is the first method to be called on that object, it will call init
before calling disconnect...and my init calls connect()
on the object. So that's a bit counterproductive to connect then disconnect right after.menegatti
02/20/2018, 2:25 PMMathbl
02/20/2018, 2:27 PMmenegatti
02/20/2018, 2:30 PMMathbl
02/20/2018, 2:31 PMthemishkun
02/20/2018, 3:19 PMconnect()
in some other method than init
?Mathbl
02/20/2018, 3:42 PM