diff options
Diffstat (limited to 'src/parser.c')
-rw-r--r-- | src/parser.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/parser.c b/src/parser.c index bb7c8d3..81f0a92 100644 --- a/src/parser.c +++ b/src/parser.c @@ -33,13 +33,9 @@ int parser_thread_data_start(ParserThreadData *self, AmalThreadCallbackFunc call } int parser_thread_data_join(ParserThreadData *self, void **result) { - int retval; if(self->status == PARSER_THREAD_STATUS_NEW) return 0; - retval = amal_thread_join(&self->thread, result); - if(retval == 0 || retval == AMAL_THREAD_NOT_JOINABLE) - self->status = PARSER_THREAD_STATUS_IDLE; - return retval; + return amal_thread_join(&self->thread, result); } int parser_init(Parser *self, amal_compiler *compiler, ScopedAllocator *allocator) { @@ -250,4 +246,4 @@ int parser_queue_file(Parser *self, BufferView path) { /* TODO: Parse special path (to include library path with dots) */ return_if_error(amal_compiler_load_file(self->compiler, path)); return PARSER_OK; -}
\ No newline at end of file +} |