Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 942c4748 authored by Jeff Brown's avatar Jeff Brown
Browse files

Don't allow clients to add FDs to Looper without callbacks.

Bug: 10349083
Change-Id: Ia75e37bb1055559f6442f97c42ec109078e737b6
parent 388ff393
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -79,7 +79,7 @@ NativeMessageQueue::NativeMessageQueue() :
        mPollEnv(NULL), mPollObj(NULL), mExceptionObj(NULL) {
    mLooper = Looper::getForThread();
    if (mLooper == NULL) {
        mLooper = new Looper(true);
        mLooper = new Looper(false);
        Looper::setForThread(mLooper);
    }
}