Commit 57f0923ca13bb053b15554e51a3b6c15884528ef
1 parent
bbd10c47
adding flush to previous messages
Showing
1 changed file
with
2 additions
and
0 deletions
src/main/java/net/floodlightcontroller/pelstats/PELStats.java
| ... | ... | @@ -227,6 +227,7 @@ public class PELStats implements IFloodlightModule, IOFMessageListener, RestAPIP |
| 227 | 227 | PelVendorHeader message= new PelVendorHeader(nb); |
| 228 | 228 | try { |
| 229 | 229 | sw.write(message, null); |
| 230 | + sw.flush(); | |
| 230 | 231 | cacEnabledMap.put(sw,true); |
| 231 | 232 | System.out.println("Enabling CAC"); |
| 232 | 233 | |
| ... | ... | @@ -242,6 +243,7 @@ public class PELStats implements IFloodlightModule, IOFMessageListener, RestAPIP |
| 242 | 243 | PelVendorHeader message= new PelVendorHeader(nb); |
| 243 | 244 | try { |
| 244 | 245 | sw.write(message, null); |
| 246 | + sw.flush(); | |
| 245 | 247 | cacEnabledMap.put(sw,false); |
| 246 | 248 | System.out.println("Disabling CAC"); |
| 247 | 249 | ... | ... |