fix race with getStore() (#45)
by calling it once before starting the server closes: #44
This commit is contained in:
@@ -37,6 +37,12 @@ static ref<Store> getStore()
|
||||
|
||||
extern "C" {
|
||||
|
||||
// Must be called once before the server is stated to avoid races
|
||||
void initStore()
|
||||
{
|
||||
getStore();
|
||||
}
|
||||
|
||||
void freeString(struct string * const input)
|
||||
{
|
||||
free((void *) input->data);
|
||||
|
||||
Reference in New Issue
Block a user