Changeset 15964 in vbox
- Timestamp:
- Jan 15, 2009 12:52:20 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 41612
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/OpenGL/util/vboxhgcm.c
r15818 r15964 906 906 if (!g_crvboxhgcm.initialized) return; 907 907 908 /* Connection count would be changed while we disconnect link, also the array of connections would be shifted*/ 908 /* Connection count would be changed in calls to crNetDisconnect, so we have to store original value. 909 * Walking array backwards is not a good idea as it could cause some issues if we'd disconnect clients not in the 910 * order of their connection. 911 */ 909 912 cCons = g_crvboxhgcm.num_conns; 910 913 for (i=0; i<cCons; i++) 911 914 { 912 crNetDisconnect(g_crvboxhgcm.conns[i]); 915 /* Note that [0] is intended, as the connections array would be shifted in each call to crNetDisconnect */ 916 crNetDisconnect(g_crvboxhgcm.conns[0]); 913 917 } 914 918 CRASSERT(0==g_crvboxhgcm.num_conns);
Note:
See TracChangeset
for help on using the changeset viewer.