mirror of
https://github.com/ChronosX88/Influence.git
synced 2024-11-09 20:11:01 +00:00
Fixed some bug with null thread handler in XMPPConnectionService.
This commit is contained in:
parent
398adfeece
commit
0fefada982
@ -70,6 +70,7 @@ public class XMPPConnectionService extends Service {
|
||||
|
||||
private void onServiceStop() {
|
||||
isThreadAlive = false;
|
||||
if(threadHandler != null) {
|
||||
threadHandler.post(() -> {
|
||||
if(connection != null) {
|
||||
thread.interrupt();
|
||||
@ -79,6 +80,7 @@ public class XMPPConnectionService extends Service {
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
private void createConnection() {
|
||||
if(connection == null) {
|
||||
|
Loading…
Reference in New Issue
Block a user