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

Commit dec7388c authored by Mike Lockwood's avatar Mike Lockwood
Browse files

MTP: Clean up MtpServer initialization and threading:

Move thread from native to Java code
Remove the stop() method (the thread will exit on its own)

Change-Id: Ib897c3630162f82669a4ee8c187e8172da50b29d
parent 8deb1521
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -237,6 +237,8 @@ void MtpServer::run() {

    if (mSessionOpen)
        mDatabase->sessionEnded();
    close(fd);
    mFD = -1;
}

void MtpServer::sendObjectAdded(MtpObjectHandle handle) {