Skip to content

Commit

Permalink
do not execute wall outgoing in on error occured
Browse files Browse the repository at this point in the history
  • Loading branch information
ujjwalguptaofficial committed May 19, 2020
1 parent 38cd9d9 commit 36c962d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/handlers/request_handler_helper.cr
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,12 @@ module Shivneri
end
end

# // doesn't execute wall outgoing
# if there will be some error in outgoing, then
# it will become an infinite loop
protected def on_error_occured(error : Exception)
errMessage : String = ""
begin
self.run_wall_out_going
errMessage = FortGlobal.error_handler.new.on_server_error(error)
rescue ex
errMessage = "#{ex.message}"
Expand Down

0 comments on commit 36c962d

Please sign in to comment.