Skip to content

Commit

Permalink
Add StatusBadSessionIDInvalid to the switch to improve debug messaging
Browse files Browse the repository at this point in the history
On this code we definitely should pause publishing until new session will be created
  • Loading branch information
bitomaxsp committed May 22, 2023
1 parent 33fe50a commit 6836af7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client_sub.go
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,10 @@ func (c *Client) publish(ctx context.Context) error {
dlog.Printf("error: session not active. pausing publish loop")
return err

case err == ua.StatusBadSessionIDInvalid:
dlog.Printf("error: session not valid. pausing publish loop")
return err

case err == ua.StatusBadServerNotConnected:
dlog.Printf("error: no connection. pausing publish loop")
return err
Expand Down

0 comments on commit 6836af7

Please sign in to comment.