Skip to content

Commit ab56561

Browse files
authored
Merge pull request #324 from defnax/fix-android
Fix to start webservice on Android
2 parents 2d138b0 + 8b6b5ef commit ab56561

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

src/rs_android/retroshareserviceandroid.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ RetroShareServiceAndroid::start(
7474
return jni::Make<ErrorConditionWrap>(env, std::errc::no_child_process);
7575
}
7676

77+
#ifdef RS_JSONAPI
78+
RsInit::startupWebServices(conf, true);
79+
#endif
80+
7781
return jni::Make<ErrorConditionWrap>(env, std::error_condition());
7882
}
7983

src/rsserver/p3face-config.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ void RsServer::rsGlobalShutDown()
104104
fullstop();
105105

106106
#ifdef RS_JSONAPI
107-
rsJsonApi->fullstop();
107+
if(rsJsonApi) rsJsonApi->fullstop();
108108
#endif
109109

110110
AuthPGP::exit();

0 commit comments

Comments
 (0)