Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

Commit

Permalink
update: const exception
Browse files Browse the repository at this point in the history
  • Loading branch information
gaowanlu committed Apr 18, 2024
1 parent 6a93e92 commit 406e44c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/hooks/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ int init::run()
}
}
}
catch (std::exception &e)
catch (const std::exception &e)
{
LOG_ERROR(e.what());
return -1;
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/stop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ void stop::run()
break;
}
}
catch (std::exception &e)
catch (const std::exception &e)
{
LOG_ERROR(e.what());
}
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/tick.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ void tick::run()
break;
}
}
catch (std::exception &e)
catch (const std::exception &e)
{
LOG_ERROR(e.what());
}
Expand Down
2 changes: 1 addition & 1 deletion src/task/stream_task.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ void stream_task::run()
{
stream_app::process_connection(*t_stream_connection);
}
catch (std::exception &e)
catch (const std::exception &e)
{
LOG_ERROR(e.what());
t_stream_connection->mark_close();
Expand Down

0 comments on commit 406e44c

Please sign in to comment.