Skip to content

Commit

Permalink
[fix] always serve panel even if xray failed to run (#2248)
Browse files Browse the repository at this point in the history
  • Loading branch information
hamid-gh98 authored May 9, 2024
1 parent a1c15e9 commit 559aad9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/web.go
Original file line number Diff line number Diff line change
Expand Up @@ -354,8 +354,6 @@ func (s *Server) Start() (err error) {
}
s.listener = listener

s.startTask()

s.httpServer = &http.Server{
Handler: engine,
}
Expand All @@ -364,6 +362,8 @@ func (s *Server) Start() (err error) {
s.httpServer.Serve(listener)
}()

s.startTask()

isTgbotenabled, err := s.settingService.GetTgbotenabled()
if (err == nil) && (isTgbotenabled) {
tgBot := s.tgbotService.NewTgbot()
Expand Down

0 comments on commit 559aad9

Please sign in to comment.