The UDP socket is now actually closed when the OpenSee component is destroyed.
This commit is contained in:
parent
05a9be7b71
commit
c2eb544096
1 changed files with 2 additions and 0 deletions
|
|
@ -187,6 +187,8 @@ public class OpenSee : MonoBehaviour {
|
||||||
receiveThread.Join();
|
receiveThread.Join();
|
||||||
stopReception = false;
|
stopReception = false;
|
||||||
}
|
}
|
||||||
|
if (socket != null)
|
||||||
|
socket.Close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue