Skip to content

Commit

Permalink
Merge branch 'main' into b61238
Browse files Browse the repository at this point in the history
  • Loading branch information
karuna2git authored Oct 2, 2024
2 parents b8f9911 + f8d965e commit 8fd00de
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
12 changes: 6 additions & 6 deletions src/rbus/rbus_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ int rbusConfig_ReadGetTimeout()
{
fp = fopen(RBUS_GET_TIMEOUT_OVERRIDE, "r");
if(fp != NULL) {
fread(buf, 1, sizeof(buf), fp);
timeout = atoi(buf);
if (fread(buf, 1, sizeof(buf), fp) > 0)
timeout = atoi(buf);
fclose(fp);
}
if (timeout > 0)
Expand All @@ -119,8 +119,8 @@ int rbusConfig_ReadWildcardGetTimeout()
{
fp = fopen(RBUS_GET_WILDCARD_TIMEOUT_OVERRIDE, "r");
if(fp != NULL) {
fread(buf, 1, sizeof(buf), fp);
timeout = atoi(buf);
if (fread(buf, 1, sizeof(buf), fp) > 0)
timeout = atoi(buf);
fclose(fp);
}
if (timeout > 0)
Expand All @@ -140,8 +140,8 @@ int rbusConfig_ReadSetTimeout()
{
fp = fopen(RBUS_SET_TIMEOUT_OVERRIDE, "r");
if(fp != NULL) {
fread(buf, 1, sizeof(buf), fp);
timeout = atoi(buf);
if (fread(buf, 1, sizeof(buf), fp) > 0)
timeout = atoi(buf);
fclose(fp);
}
if (timeout > 0)
Expand Down
4 changes: 0 additions & 4 deletions src/rtmessage/rtConnection.c
Original file line number Diff line number Diff line change
Expand Up @@ -1836,11 +1836,7 @@ static void * rtConnection_ReaderThread(void *data)
while (1 == GetRunThreadsSync(con))
{
rtTime_Now(&con->reader_reconnect_time);
#ifdef WITH_SPAKE2
if((err = rtConnection_Read(con, 60000)) != RT_OK)
#else
if((err = rtConnection_Read(con, -1)) != RT_OK)
#endif
{
if (0 == GetRunThreadsSync(con))
{
Expand Down

0 comments on commit 8fd00de

Please sign in to comment.