fixes #2848 newnym might call a null conn in service
This commit is contained in:
parent
069a9bf377
commit
cf5e4454eb
|
@ -1387,7 +1387,9 @@ public class TorService extends Service implements TorServiceConstants, TorConst
|
||||||
|
|
||||||
public void newIdentity ()
|
public void newIdentity ()
|
||||||
{
|
{
|
||||||
|
//it is possible to not have a connection yet, and someone might try to newnym
|
||||||
|
if (conn != null)
|
||||||
|
{
|
||||||
new Thread ()
|
new Thread ()
|
||||||
{
|
{
|
||||||
public void run ()
|
public void run ()
|
||||||
|
@ -1399,6 +1401,7 @@ public class TorService extends Service implements TorServiceConstants, TorConst
|
||||||
}
|
}
|
||||||
}.start();
|
}.start();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public boolean saveConfiguration ()
|
public boolean saveConfiguration ()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue