Skip to content

Commit

Permalink
Fix Async MySQL return values
Browse files Browse the repository at this point in the history
  • Loading branch information
kungfooman committed Oct 31, 2014
1 parent 0d88850 commit 70279a7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gsc_mysql.cpp
Expand Up @@ -93,15 +93,15 @@ void *mysql_async_query_handler(void* input_nothing) //is threaded after initial
if(started)
{
printf("scriptengine> async handler already started. Returning\n");
return;
return NULL;
}
started = true;
mysql_async_connection *c = first_async_connection;
if(c == NULL)
{
printf("scriptengine> async handler started before any connection was initialized\n"); //this should never happen
started = false;
return;
return NULL;
}
mysql_async_task *q;
while(true)
Expand Down Expand Up @@ -309,7 +309,7 @@ void gsc_mysql_async_initializer()//returns array with mysql connection handlers
if(pthread_create(&async_handler, NULL, mysql_async_query_handler, NULL))
{
printf("Error detaching async handler thread\n");
return NULL;
return;
}
pthread_detach(async_handler);
//std::thread async_query(mysql_async_query_handler);
Expand Down

0 comments on commit 70279a7

Please sign in to comment.