mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-04-26 22:10:09 +00:00
Don't add an integer to a char *
This commit is contained in:
parent
206f06f3f9
commit
c7203ee639
4
server.c
4
server.c
@ -157,9 +157,9 @@ JNIEXPORT jint JNICALL Java_org_servalproject_servaldna_ServalDCommand_server(
|
||||
|
||||
int pid = server_pid();
|
||||
if (pid < 0)
|
||||
return Throw(env, "java/lang/IllegalStateException", "Failed to read server pid "+pid);
|
||||
return Throw(env, "java/lang/IllegalStateException", "Failed to read server pid ");
|
||||
if (pid>0)
|
||||
return Throw(env, "java/lang/IllegalStateException", "Server already running on pid "+pid);
|
||||
return Throw(env, "java/lang/IllegalStateException", "Server already running on pid ");
|
||||
|
||||
cf_reload_strict();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user