mirror of
https://github.com/LBRYFoundation/pool.git
synced 2025-09-05 05:15:17 +00:00
stratum: dont try to send on closed sockets
This commit is contained in:
parent
d99bc61b5c
commit
d2f0f424ee
1 changed files with 5 additions and 0 deletions
|
@ -157,6 +157,11 @@ int socket_send(YAAMP_SOCKET *s, const char *format, ...)
|
||||||
vsprintf(buffer, format, args);
|
vsprintf(buffer, format, args);
|
||||||
va_end(args);
|
va_end(args);
|
||||||
|
|
||||||
|
if(!s) {
|
||||||
|
errno = EINVAL;
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
// json_value *json = json_parse(buffer, strlen(buffer));
|
// json_value *json = json_parse(buffer, strlen(buffer));
|
||||||
// if(!json)
|
// if(!json)
|
||||||
// debuglog("sending bad json message: %s\n", buffer);
|
// debuglog("sending bad json message: %s\n", buffer);
|
||||||
|
|
Loading…
Add table
Reference in a new issue