[android] - remove mips and armeabi as supported ABIs
[android] - bump CI image to NDK 17 compatible [core] - remove setting edgeDistance to 0, comparison 'const short' > 32767 is always false [android] - remove throwing in desructor, undefined behaviour [android] - bump dependency versions of project
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
#include <mbgl/util/thread.hpp>
|
||||
#include <mbgl/util/timer.hpp>
|
||||
#include <mbgl/actor/scheduler.hpp>
|
||||
#include <mbgl/util/event.hpp>
|
||||
|
||||
#include <android/looper.h>
|
||||
|
||||
@@ -17,6 +18,7 @@
|
||||
|
||||
#include <fcntl.h>
|
||||
#include <unistd.h>
|
||||
#include <mbgl/util/logging.hpp>
|
||||
|
||||
#define PIPE_OUT 0
|
||||
#define PIPE_IN 1
|
||||
@@ -119,11 +121,11 @@ RunLoop::Impl::~Impl() {
|
||||
alarm.reset();
|
||||
|
||||
if (ALooper_removeFd(loop, fds[PIPE_OUT]) != 1) {
|
||||
throw std::runtime_error("Failed to remove file descriptor from Looper.");
|
||||
Log::Error(mbgl::Event::General, "Failed to remove file descriptor from Looper");
|
||||
}
|
||||
|
||||
if (close(fds[PIPE_IN]) || close(fds[PIPE_OUT])) {
|
||||
throw std::runtime_error("Failed to close file descriptor.");
|
||||
Log::Error(mbgl::Event::General, "Failed to close file descriptor.");
|
||||
}
|
||||
|
||||
ALooper_release(loop);
|
||||
|
||||
Reference in New Issue
Block a user