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

Commit

Permalink
Merge pull request #24 from humphd/fix-paint-crash-on-disconnecting
Browse files Browse the repository at this point in the history
Fix Invalid State crash in onPaint when disconnecting
  • Loading branch information
humphd committed Mar 27, 2017
2 parents 79d09ae + 840fc7e commit 965c6aa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions VncSharp/RemoteDesktop.cs
Original file line number Diff line number Diff line change
Expand Up @@ -617,6 +617,9 @@ protected override void OnPaint(PaintEventArgs pe)
case RuntimeState.Disconnected:
// Do nothing, just black background.
break;
case RuntimeState.Disconnecting:
// Do nothing, just black background.
break;
default:
// Sanity check
throw new NotImplementedException(string.Format("RemoteDesktop in unknown State: {0}.", state.ToString()));
Expand Down

0 comments on commit 965c6aa

Please sign in to comment.