diff --git a/src/worker.cpp b/src/worker.cpp index d183d2b..0b9e672 100644 --- a/src/worker.cpp +++ b/src/worker.cpp @@ -195,7 +195,9 @@ void Worker::stop() void Worker::dropPrivileges() { -#ifndef WIN32 +#ifdef WIN32 + throw Exception("not supported"); +#else if (uid <= 0 || privilegesDropped) return;