Skip to content

Commit

Permalink
prevent some crashes on stratum_thread crash (especially on linux)
Browse files Browse the repository at this point in the history
  • Loading branch information
djm34 committed Oct 7, 2019
1 parent c6d0223 commit e6053ea
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions ccminer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4002,10 +4002,11 @@ static void *stratum_thread(void *userdata)

wait_stratum_url:

struct timespec test;
test.tv_sec = 1;
// struct timespec test;
// test.tv_sec = 1;
// test.tv_nsec = 500000000;
stratum.url = (char*)tq_pop(mythr->q,&test);
// stratum.url = (char*)tq_pop(mythr->q,&test);
stratum.url = (char*)tq_pop(mythr->q, NULL);

if (!stratum.url) {
stratum.url = strdup(pool->url);
Expand Down
2 changes: 1 addition & 1 deletion compat/ccminer-config.h
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@
#define PACKAGE_URL "http://github.com/zcoinofficial/ccminer"

/* Define to the version of this package. */
#define PACKAGE_VERSION "1.2.2-djm34"
#define PACKAGE_VERSION "1.2.3-djm34"

/* If using the C implementation of alloca, define if you know the
direction of stack growth for your system; otherwise it will be
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AC_INIT([ccminer], [1.2.2-djm34], [], [ccminer], [http://github.com/zcoinofficial/ccminer])
AC_INIT([ccminer], [1.2.3-djm34], [], [ccminer], [http://github.com/zcoinofficial/ccminer])

AC_PREREQ([2.59c])
AC_CANONICAL_SYSTEM
Expand Down

0 comments on commit e6053ea

Please sign in to comment.