Skip to content

Commit

Permalink
fix multiple threads work and set default use threads.
Browse files Browse the repository at this point in the history
  • Loading branch information
McMCCRU committed Jan 31, 2020
1 parent 2705b82 commit 2c8c7ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/adapter.c
Original file line number Diff line number Diff line change
Expand Up @@ -2125,7 +2125,7 @@ int signal_thread(sockets *s)
if (ad->status_cnt++ <= 0) // make sure the kernel has updated the status
continue;
// do not get the signal when the adapter is being changed
if (ad->mutex.state != 0)
if (!opts.no_threads && ad->mutex.state != 0)
continue;
if (opts.no_threads && !ad->fast_status && status >= 0)
continue;
Expand Down
2 changes: 1 addition & 1 deletion src/minisatip.c
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ void set_options(int argc, char *argv[])
#else
#define AXE_OPTS ""
#ifdef GXAPI
opts.no_threads = 1;
opts.no_threads = 0;
opts.document_root = "/usr/share/minisatip/html";
#endif

Expand Down

0 comments on commit 2c8c7ad

Please sign in to comment.