Skip to content

Commit

Permalink
Fix shutdown crash when StreamDeck is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
ocdtrekkie committed Jan 12, 2021
1 parent dc336d2 commit f6c7cff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modStreamDeck.vb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Module modStreamDeck
Unload()
My.Settings.StreamDeck_Enable = False
My.Application.Log.WriteEntry("Stream Deck module is disabled")
Return "Matrix LCD module disabled"
Return "Stream Deck module disabled"
End Function

Function Enable() As String
Expand Down Expand Up @@ -45,7 +45,7 @@ Module modStreamDeck

Function Unload() As String
My.Application.Log.WriteEntry("Unloading Stream Deck module")
If ActiveStreamDeck.IsConnected = True Then
If IsNothing(ActiveStreamDeck) = False AndAlso ActiveStreamDeck.IsConnected = True Then
ActiveStreamDeck.ShowLogo()
ActiveStreamDeck.Dispose()
End If
Expand Down

0 comments on commit f6c7cff

Please sign in to comment.