Update of /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17058
Modified Files:
SurfaceFacade.java
Log Message:
added a 50millis sleep after commiting a surface (very ugly I know)
Index: SurfaceFacade.java
===================================================================
RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/SurfaceFacade.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** SurfaceFacade.java 12 Sep 2005 18:26:53 -0000 1.6
--- SurfaceFacade.java 13 Sep 2005 17:28:48 -0000 1.7
***************
*** 28,32 ****
/** The instance */
private static SurfaceFacade instance;
!
/**
* Constructor
--- 28,32 ----
/** The instance */
private static SurfaceFacade instance;
!
/**
* Constructor
***************
*** 56,64 ****
Session session = hu.currentSession();
Transaction tx = session.beginTransaction();
session.save(s);
tx.commit();
!
Notification n = new Notification(Notification.SURFACE_CREATED, s.getId());
Notifier.getInstance().sendNotification(n);
--- 56,69 ----
Session session = hu.currentSession();
Transaction tx = session.beginTransaction();
+
session.save(s);
tx.commit();
!
! //a sleep here seems to help making everything not crash(as badly)
! //not sure why though, someone should find out!
! Thread.sleep(50);
!
Notification n = new Notification(Notification.SURFACE_CREATED, s.getId());
Notifier.getInstance().sendNotification(n);
|