Skip to content

Commit

Permalink
fix(activity.c): restore client disconnection function
Browse files Browse the repository at this point in the history
  • Loading branch information
twaik committed Jan 7, 2025
1 parent 9302a57 commit 3731b12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/cpp/lorie/activity.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ static int xcallback(int fd, int events, __unused void* data) {
if (events & (ALOOPER_EVENT_ERROR | ALOOPER_EVENT_HANGUP)) {
jobject instance = (*env)->CallStaticObjectMethod(env, MainActivity.self, MainActivity.getInstance);
if (instance)
(*env)->CallVoidMethod(env, MainActivity.self, MainActivity.clientConnectedStateChanged, JNI_FALSE);
(*env)->CallVoidMethod(env, instance, MainActivity.clientConnectedStateChanged, JNI_FALSE);

ALooper_removeFd(ALooper_forThread(), fd);
close(conn_fd);
Expand Down

0 comments on commit 3731b12

Please sign in to comment.