OSDN Git Service

Check if VoiceClient is there before trying to unregister the session.
authorLatif Khalifa <latifer@streamgrid.net>
Wed, 28 Oct 2009 01:28:28 +0000 (01:28 +0000)
committerLatif Khalifa <latifer@streamgrid.net>
Wed, 28 Oct 2009 01:28:28 +0000 (01:28 +0000)
git-svn-id: https://radegast.googlecode.com/svn/trunk@385 f7a694da-4d33-11de-9ad6-1127a62b9fcd

plugins/Radegast.Plugin.Voice/Session.cs

index 0285d8c..b5f082b 100644 (file)
@@ -56,7 +56,8 @@ namespace Radegast.Plugin.Voice
                 sessionForm.Hide();\r
 \r
                 // Remove the session from the contexts.\r
-                control.vClient.CloseSession(SessionHandle);\r
+                if (control.vClient != null)\r
+                    control.vClient.CloseSession(SessionHandle);\r
             }));\r
         }\r
 \r