mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-22 20:44:19 +00:00
Clear the stratum socket whenever we are closing it since the buffer is going to be reused.
This commit is contained in:
parent
12553004c5
commit
fbb25c4ba5
1
util.c
1
util.c
@ -1506,6 +1506,7 @@ out:
|
|||||||
|
|
||||||
void suspend_stratum(struct pool *pool)
|
void suspend_stratum(struct pool *pool)
|
||||||
{
|
{
|
||||||
|
clear_sock(pool);
|
||||||
applog(LOG_INFO, "Closing socket for stratum pool %d", pool->pool_no);
|
applog(LOG_INFO, "Closing socket for stratum pool %d", pool->pool_no);
|
||||||
mutex_lock(&pool->stratum_lock);
|
mutex_lock(&pool->stratum_lock);
|
||||||
pool->stratum_active = pool->stratum_notify = false;
|
pool->stratum_active = pool->stratum_notify = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user