Skip to content

Commit 08df456

Browse files
committed
fix: fix PR comments and bump version
1 parent 462e68a commit 08df456

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

IOSDeviceLib/SocketHelper.cpp

+7-5
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,13 @@ std::map<std::string, boost::any> receive_con_message(ServiceConnRef con, std::s
2121

2222
bool isSuccessful = false;
2323

24-
setTimeout([=]() {
25-
if (!isSuccessful) {
26-
AMDServiceConnectionInvalidate(con);
27-
}
28-
}, timeout);
24+
if (timeout > 0) {
25+
setTimeout([=]() {
26+
if (!isSuccessful) {
27+
AMDServiceConnectionInvalidate(con);
28+
}
29+
}, timeout);
30+
}
2931

3032
std::map<std::string, boost::any> dict;
3133
char *buffer = new char[4];

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ios-device-lib",
3-
"version": "0.7.0",
3+
"version": "0.7.1",
44
"description": "",
55
"types": "./typings/ios-device-lib.d.ts",
66
"main": "index.js",

0 commit comments

Comments
 (0)