Permalink
Browse files

Use rb_thread_alone exclusively to determine if the query should be T…

…hread scheduled
  • Loading branch information...
1 parent 57712a6 commit 79f742908dd9ce1c4b26548a96967fd20aacd4a2 @methodmissing methodmissing committed Nov 1, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 ext/mysql.c
View
@@ -1035,7 +1035,7 @@ static void schedule_query(VALUE obj, VALUE timeout)
}
static int should_schedule_query(){
- return ( ( rb_thread_main() == rb_thread_current() ) && rb_thread_alone() ) != 1;
+ return rb_thread_alone() != 1;
}
/* async_query(sql,timeout=nil) */

0 comments on commit 79f7429

Please sign in to comment.