Allow RakLibServer to inherit constants (PATH const is needed for exception logging)

this is very annoying and needs a better fix.
This commit is contained in:
Dylan K. Taylor 2018-05-09 20:08:25 +01:00
parent c3822b795c
commit 68ef4b210d

View File

@ -92,7 +92,7 @@ class RakLibInterface implements ServerInstance, AdvancedSourceInterface{
}
public function start(){
$this->rakLib->start(PTHREADS_INHERIT_NONE);
$this->rakLib->start(PTHREADS_INHERIT_CONSTANTS); //HACK: constants needed for cleanPath() in case of exception logging on MainLogger
}
public function setNetwork(Network $network){