aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Integration/ExternalBridge/ExternalBridgeService.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Software/Visual_Studio/Tango.Integration/ExternalBridge/ExternalBridgeService.cs')
-rw-r--r--Software/Visual_Studio/Tango.Integration/ExternalBridge/ExternalBridgeService.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.Integration/ExternalBridge/ExternalBridgeService.cs b/Software/Visual_Studio/Tango.Integration/ExternalBridge/ExternalBridgeService.cs
index c4f559c58..4cdd372f5 100644
--- a/Software/Visual_Studio/Tango.Integration/ExternalBridge/ExternalBridgeService.cs
+++ b/Software/Visual_Studio/Tango.Integration/ExternalBridge/ExternalBridgeService.cs
@@ -283,6 +283,12 @@ namespace Tango.Integration.ExternalBridge
{
if (IsInSession)
{
+ if (container.Type == MessageType.ExternalBridgeLoginRequest)
+ {
+ SendErrorResponse(new AuthenticationException("Machine is already in session."), container.Token);
+ return;
+ }
+
if (_messageHandlers.ContainsKey(container.Type))
{
try