Skip to content

Commit

Permalink
Fixes exception on poll if hostname not set yet
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Johnson committed Jun 10, 2021
1 parent d11a375 commit 326f009
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions PanasonicCameraEpi/PanasonicCameraMonitor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ public override void Stop()

private void TimerCallback(object obj)
{
if (string.IsNullOrEmpty(_client.Client.HostName))
{
Debug.Console(0, "Panasonic camera hostname not valid");
return;
}
_client.SendText(_pollString);
}

Expand Down

0 comments on commit 326f009

Please sign in to comment.