You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a user of TorService starts and binds to the service, then (as documented) tries to use the TorControlConnection, it can happen that it hasn't been assigned and a NullPointerException is thrown. This is because the TorControlConnection gets only assigned in another thread after doing some extra work.
How is a user of the library supposed to know when the control connection becomes available? Are they expected to register a broadcast receiver and wait for the TorService.STATUS_ON event? That would be quite a cumbersome, but possible solution. If it is that, it should at least get documented.
The text was updated successfully, but these errors were encountered:
When a user of
TorService
starts and binds to the service, then (as documented) tries to use theTorControlConnection
, it can happen that it hasn't been assigned and aNullPointerException
is thrown. This is because theTorControlConnection
gets only assigned in another thread after doing some extra work.How is a user of the library supposed to know when the control connection becomes available? Are they expected to register a broadcast receiver and wait for the
TorService.STATUS_ON
event? That would be quite a cumbersome, but possible solution. If it is that, it should at least get documented.The text was updated successfully, but these errors were encountered: