Skip to content

Commit a4ee867

Browse files
committed
Protect close too
1 parent aa12ea5 commit a4ee867

File tree

1 file changed

+8
-2
lines changed
  • Packages/com.unity.ide.visualstudio/Editor/Messaging

1 file changed

+8
-2
lines changed

Packages/com.unity.ide.visualstudio/Editor/Messaging/Messenger.cs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,14 @@ public static Messager BindTo(int port)
222222

223223
public void Dispose()
224224
{
225-
_disposed = true;
226-
_socket.Close();
225+
try
226+
{
227+
_disposed = true;
228+
_socket.Close();
229+
}
230+
catch
231+
{
232+
}
227233
}
228234
}
229235
}

0 commit comments

Comments
 (0)