GeezerVison is showing github.com — fix countdowntimer issue and release 3.0.2 · cdvankammen/AndroidSocketClient@ded0b12
File tree
Expand file treeCollapse file tree
Open diff view settings
src/main/java/com/vilyever/socketclient
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: README.md +5-1Lines changed: 5 additions & 1 deletion - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -17,11 +17,15 @@ Step 2. Add the dependency in the form |
17 | 17 |
|
18 | 18 | ```gradle |
19 | 19 | dependencies { |
20 | | - compile 'com.github.vilyever:AndroidSocketClient:3.0.1' |
| 20 | + compile 'com.github.vilyever:AndroidSocketClient:3.0.2' |
21 | 21 | } |
22 | 22 | ``` |
23 | 23 |
|
24 | 24 | ## Updates |
| 25 | +* 3.0.2 |
| 26 | +</br> |
| 27 | +修复初次连接失败时,因CountDownTimer导致崩溃的问题 [issue #24](/../../issues/24) |
| 28 | + |
25 | 29 | * 3.0.1 |
26 | 30 | </br> |
27 | 31 | 修复包头验证bug,by zzdwuliang |
|
Collapse file
Copy file name to clipboardExpand all lines: socketclient/build_library_ext.gradle +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | ext { |
2 | 2 | buildVersionName = { |
3 | | - "3.0.1" |
| 3 | + "3.0.2" |
4 | 4 | } |
5 | 5 |
|
6 | 6 | /** |
|
Collapse file
Copy file name to clipboardExpand all lines: socketclient/src/main/java/com/vilyever/socketclient/SocketClient.java +3-1Lines changed: 3 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -1045,7 +1045,9 @@ public void run() { |
1045 | 1045 | self.setSocketInputReader(null); |
1046 | 1046 | self.setSocketConfigure(null); |
1047 | 1047 |
|
1048 | | - self.getHearBeatCountDownTimer().cancel(); |
| 1048 | + if (self.hearBeatCountDownTimer != null) { |
| 1049 | + self.hearBeatCountDownTimer.cancel(); |
| 1050 | + } |
1049 | 1051 |
|
1050 | 1052 | if (self.getSendingPacket() != null) { |
1051 | 1053 | self.__i__onSendPacketCancel(self.getSendingPacket()); |
|